[racket] list splat into variable arity

From: Louis-Philippe (default at spiralix.org)
Date: Wed Nov 23 16:49:52 EST 2011

great!
thanks!

2011/11/23 Neil Van Dyke <neil at neilvandyke.org>

> Tony Garnock-Jones wrote at 11/23/2011 04:14 PM:
>
>  On 2011-11-23 4:12 PM, Louis-Philippe wrote:
>>
>>
>>> I looked around and couldn't find how to expand a list to fit as
>>> multiple function arguments, for variable arity functions rest.
>>>
>>>
>> (apply + '(1 2 3)) ?
>>
>>
>
> You can also do:
>
> (apply + 1 2 3 '(4 5 6))
>
> --
> http://www.neilvandyke.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20111123/b12abc1b/attachment.html>

Posted on the users mailing list.