Re: Definition of mapcar
Paul Dietz <[email protected]>
| Newsgroups | gmane.lisp.allegro |
|---|---|
| Organization | GSG Software Design Automation |
| Message-ID | <[email protected]> |
feilong wrote: > > Hallo, > Ich have tried to write the definition of mapcar, but I don't > succeed, because funktion mapcar can take any numbers of > arguments and the recursion procedure is very comlicated. For example : > >(mapcar #'+ '(1 2 3)) > >6 > >(mapcar #'+ '(1 2 3) '(24 3) '(89 43)) > >(114 48) (mapcar #'+ '(1 2 3)) ==> (1 2 3), not 6 See the CL Hyperspec for a thorough definition of mapcar. http://www.franz.com/support/documentation/6.2/ansicl/dictentr/mapcmapc.htm Paul