Here's a function that takes a number N, and returns a function that adds N to its argument (taken from Practical Common Lisp):
(defun add-n (n)
#'(lambda (x)
(+ x n)))
My guess was something like this should work:
((add-n 1) 2)
Unfortunately, it doesn't work. Further investigation:
? (functionp 'add-n)
NIL
Now I'm confused. How can I use this add-n properly?