Skip to content
TurtleKitty edited this page May 11, 2019 · 3 revisions

rest

This dynamic variable holds a list of all arguments sent to a procedure after the formals.

(proc foo (x y z)
    (list x y z rest))

(foo 1 2 3)          ; (1 2 3 ())
(foo 1 2 3 4 5 6 7)  ; (1 2 3 (4 5 6 7))
Clone this wiki locally