最初のページ 戻る 次へ 最後のページ

map4回目(巻き取り段階)

( map square '( ) )

xは空リスト

( map square '( ) ) は空リスト 

(define (map f x)

(cond ((null? x) nil)

(else (cons (f (car x)) (map f (cdr x)))) ))