diff options
-rw-r--r-- | control-flow.lisp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/control-flow.lisp b/control-flow.lisp index a52b691..f676c08 100644 --- a/control-flow.lisp +++ b/control-flow.lisp @@ -212,3 +212,12 @@ (cddr binding)))) bindings) ,@body)) + + +(defmacro multiple-value-list (expression) + `(multiple-value-call #'list ,expression)) + + +(defmacro multiple-value-bind ((&rest vars) expression &body forms) + `(destructuring-bind ,vars (multiple-value-list ,expression) + ,@forms)) |