[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: APPLY with 3+ arguments
- To: fritzson@bigburd.PRC.Unisys.COM
- Subject: Re: APPLY with 3+ arguments
- From: Daniels.pa@Xerox.COM
- Date: Mon, 22 Jun 1987 16:09:00 -0000
- Cc: common-lisp@sail.stanford.edu
- In-reply-to: Richard Fritzson <fritzson@bigburd.PRC.Unisys.COM>'s message of 22 Jun 87 07:19 EDT (Monday)
Perhaps you're a little confused about how APPLY with more than 2 args
works. Only the last argument passed to APPLY is an arglist. The rest
are individual arguments to the applied function. As CLtL says, "it is
as if all the arguments to apply execpt the function were given to LIST*
to create the argumentlist."
Thus (APPLY #'LIST '(1 2) '(3 4)) => ((1 2) 3 4), not (1 2 3 4). Page
108 of CLtL and the other replies to your message give reasonable
examples of what you can use this for.
-- Andy. --