How to write this Lisp / Scheme code? -
a lambda expression takes function (of 1 argument) , number, , applies function twice number.
applying function twice number:
(lambda (f x) (f (* 2 x)))
applying function number twice (which may have intended ask):
(lambda (f x) (f (f x)))
Comments
Post a Comment