[squeak-dev] Curly Braces history
Stéphane Rollandin
lecteur at zogotounga.net
Thu May 10 16:52:02 UTC 2012
> I am not all that well versed in Lisp, could you explain what Lisp's
> destructuring-bind does?
(destructuring-bind (first second . stuff) '(1 2 3 4 5))
would bind 'first to 1, 'second to 2 and 'stuff to '(3 4 5)
In Bert's link we have the Smalltalk example {a. b} := {1 . 2}
which would bind a to 1 and b to 2
Stef
More information about the Squeak-dev
mailing list
|