From: David Vázquez Date: Sun, 23 Jun 2013 00:37:23 +0000 (+0200) Subject: NTH-VALUE macro X-Git-Url: http://repo.macrolet.net/gitweb/?a=commitdiff_plain;h=5b3421abce6203fd73ac298f1fbba783abaeab5f;p=jscl.git NTH-VALUE macro --- diff --git a/src/boot.lisp b/src/boot.lisp index d045186..3541b23 100644 --- a/src/boot.lisp +++ b/src/boot.lisp @@ -542,3 +542,8 @@ (defun error (fmt &rest args) (%throw (apply #'format nil fmt args))) + +(defmacro nth-value (n form) + `(multiple-value-call (lambda (&rest values) + (nth ,n values)) + ,form))