[slime-devel] transpose-lists

Pascal Bourguignon pjb at informatimago.com
Tue Aug 9 21:39:37 UTC 2005


Denis Bueno writes:
> > > (defun transpose-lists (lists)
> > >   (cond ((some #'null lists) '())
> > >       (t (cons (mapcar #'car lists)
> > >                (transpose-lists (mapcar #'cdr lists))))))
> > 
> > Is it the sun? Are we becoming silly?
> > 
> > (defun transpose-lists (lists) (apply (function mapcar) (function list) lists))
> 
> If you had actually *read* Edi's first e-mail, it was because
> CALL-ARGUMENTS-LIMIT and APPLY that the new solution was originally
> conceived.

Oh!  Sorry then.

 
-- 
"Klingon function calls do not have "parameters" -- they have
"arguments" and they ALWAYS WIN THEM."



More information about the slime-devel mailing list