Created
February 12, 2013 13:14
-
-
Save yosugi/4766190 to your computer and use it in GitHub Desktop.
named let for common lisp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; named let for common lisp | |
(defmacro nlet (tag var-vals &body body) | |
`(labels ((,tag ,(mapcar #'car var-vals) ,@body)) | |
(,tag ,@(mapcar #'cadr var-vals)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment