From ... From: Erik Naggum Subject: Re: mapcar on function arguments Date: 1997/04/26 Message-ID: <3071059981571282@naggum.no>#1/1 X-Deja-AN: 237536948 References: <87iv1ag8ny.fsf@comnets.rwth-aachen.de> <336222D4.35F3@bway.net> mail-copies-to: never Organization: Naggum Software; +47 2295 0313; http://www.naggum.no Newsgroups: comp.lang.lisp * Dirk Bernhardt | mapcar, which is supposed to apply its first argument to each element of | its second argument (according to my documentation), will not evaluate | (mapcar #'foo '(#'+ #'*)), but the evaluation of | (mapcar #'foo '(+ *)) ==> (7 12) | works instead. Can you help me? * Ken Tilton | I suggest you modify #'foo to print its argument and the argument's type, | or even inspect its argument. Hint: (list ) is not always the | same as '(). I'll take that hint a bit further, since this is a frequent problem for beginners in Lisp (as witnessed mostly in Emacs Lisp): the value of '(x y z) is identical to the value of (list 'x 'y 'z) in all but one respect (the time at which the list is constructed). 'x is identical to (quote x) in all respects. #'x is identical to (function x) in all respects. you should get the idea, now. #\Erik -- if we work harder, will obsolescence be farther ahead or closer?