[racket] function parameters in racket

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Sun Jul 20 11:29:40 EDT 2014

(define (plus . xs)  ; notice the . xs . The arguments are passed as a
list in xs.
  (displayln "received: ")
  (displayln xs)
  (apply + xs))

2014-07-20 16:07 GMT+02:00 קוראל אלימלך <coral2301 at gmail.com>:
> how can i define a function that gets a not known number of parameters
> (like the + function:
>  that i can send (+1 2 ) or (+ 1 2 3 ) (+1 2 3 4 )....)
>
> thank u :)
>
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users
>



-- 
--
Jens Axel Søgaard


Posted on the users mailing list.