

| |||||||
|
You are here: Root > By Topic > Language Extensions
Metabang-bind provides a binding construct that generalizes MULTIPLE-VALUE-BIND, LET, LET* and DESTRUCTURING-BIND.
| gwking@metabang.com | |
| Web site | http://common-lisp.net/project/cl-containers/metabang-bind/ |
| Mailing list | |
| Version | 0.7.0 - Saturday, 01 March 2008 |
| Maturity | Experimental |
| OS compatibility | Unix, MacOS X, Windows |
| ASDF installable | Yes |
| Official Download | http://common-lisp.net/project/cl-containers/metabang-bind/metabang-bind_latest.tar.gz |
| Mirrored Download | |
| Source code repository | http://common-lisp.net/project/cl-containers/metabang-bind/darcs/metabang-bind/_darcs/ |
Bind combines let, destructuring-bind and multiple-value-bind and a whole lot more into a single form. The user guide has all the details but here is example to whet your appetite:
(bind ((a 2)
((b &rest args &key (c 2) &allow-other-keys) '(:a :c 5 :d 10 :e 54))
((:values d e) (truncate 4.5)))
(list a b c d e args))
==> (2 :A 5 4 0.5 (:C 5 :D 10 :E 54))
Allegro Common Lisp | SBCL | OpenMCL | MCL
cl-perec | cl-wdim | CL-Graph | Metatilities
Language Extensions | ASDF installable | Unix family | Windows family | MIT
You must be logged to add a note
You must be logged to add a comment