[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: non-list arguments
It certainly doesn't work in Common Lisp because lambda lists don't do
destructuring in Common Lisp (though the argument lists for macros do
destructure).
Also, in Common Lisp you'd have to say "(function (lambda ...))".
OK, for Common Lisp how about:
(apply #'(lambda (x &rest y) (+ x y)) (cons 1 2))
In other words, "&rest" is all the destructuring I need to ask this
question. "." is simply the cleaner way one can write it in the
Schemes.
(Sorry for the redundant scheme mailing addresses. I'm having some mail
returned and I don't know which address is causing the problem)