[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lisp performance was Re: problems with lisp



Peter Seibel wrote:
 > Just for grins I tried out your two versions...  both were slower
 > than two implementations that seemed to me even more "simple and
 > obvious":
 >
 >   (defun mapcar-double (list)
 >     (mapcar #'(lambda (x) (* 2 x)) list))


As they say,

   To iterate is illiterate.
   To recurse is worse.
   To avoid this trap, see
   Instructions for MAPC.

Does anyone know who wrote this originally?