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

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -