Lisp-likeness

ole.rohne at cern.ch ole.rohne at cern.ch
Tue Mar 15 07:10:52 EST 2005


Kay> Maybe You can answer my question what this simple LISP function does ?
Kay> (defun addn (n)
Kay> 	  #'(lambda (x)
Kay> 	      (+ x n)))

Is that a real question or are you making a rhetorical point here?

Kay> This is correct LISP-syntax if You bear in mind LISPs powerwull macro
Kay> language...

It's indeed correct CL syntax, but I don't see much macro usage in there.

Try (mapcar (addn 4) (list 1 2 3))...

Ole




More information about the Python-list mailing list