1.42(函数的复合)

(define (compose f g)
  (lambda (x)
    (f (g x))))

((compose square inc) 6)
((compose inc inc) 6)

 

posted @ 2018-01-31 23:54  R4mble  阅读(171)  评论(0编辑  收藏  举报