In Scheme you can define the following procedure:
(define (proc . vars)
(display (length vars)))
This will allow you to send any amount of args to proc. But when I try to do it this way:
(define proc (lambda (. vars)
(display (length vars))))
I get the following error:
read: illegal use of "."
I can't seem to find the correct syntax for a lambda expression which gets any number of arguments. Ideas?
(I'm using DrScheme, version 209, with language set to PLT(Graphical))
Thanks!