From: Paul Dietz

Subject: Re: Definition of mapcar

Date: 2002-12-6 14:26

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