PPT Slide
Functions as Arguments to Functions
-- Sometimes you want to pass the name of a function to a second function and have the second function use the first.
-- The ‘functions applied to functions’ are called functionals.
-- mapcar is probably the most commonly used functional in Lisp.
( mapcar ( function < name > ) < list > )
( mapcar # ’< name > < list > )
applies the function of one argument to each element of the list, returning a newly created list.
( mapcar #'1+ '( 2 4 6 8 10 ) )