[racket] list splat into variable arity

From: Neil Van Dyke (neil at neilvandyke.org)
Date: Wed Nov 23 16:19:52 EST 2011

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/


Posted on the users mailing list.