[plt-scheme] rest args

From: Robby Findler (robby at cs.uchicago.edu)
Date: Sat Feb 7 12:57:35 EST 2004

On Feb 7, 2004, at 11:54 AM, David J. Neu wrote:
> (define g
>   (lambda (a b c . z)
>     (printf "~a~n" a)
>     (printf "~a~n" b)
>     (printf "~a~n" c)
>     (printf "~a~n~n" z)
>     (f a b z)))

You want (apply f a b z) in the last line of g.


Posted on the users mailing list.