<div dir="rtl"><div dir="ltr">thank u very much:)</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div dir="ltr">2014-07-20 18:29 GMT+03:00 Jens Axel Søgaard <span dir="ltr"><<a href="mailto:jensaxel@soegaard.net" target="_blank">jensaxel@soegaard.net</a>></span>:</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">(define (plus . xs) ; notice the . xs . The arguments are passed as a<br>
list in xs.<br>
(displayln "received: ")<br>
(displayln xs)<br>
(apply + xs))<br>
<br>
2014-07-20 16:07 GMT+02:00 קוראל אלימלך <<a href="mailto:coral2301@gmail.com">coral2301@gmail.com</a>>:<br>
<div class="HOEnZb"><div class="h5">> how can i define a function that gets a not known number of parameters<br>
> (like the + function:<br>
> that i can send (+1 2 ) or (+ 1 2 3 ) (+1 2 3 4 )....)<br>
><br>
> thank u :)<br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> ____________________<br>
> Racket Users list:<br>
> <a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
><br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
--<br>
Jens Axel Søgaard<br>
</font></span></blockquote></div><br></div>