Created
May 9, 2016 11:52
-
-
Save fredyr/ab5477ad27d807295978fda5f88de61a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
(defmacro lwt (&rest args) | |
(destructuring-bind (b1 wh b2 &rest body) args | |
`(let* (,@b2 ,@b1) ,@body))) | |
(macroexpand-all | |
'(lwt ((w (* x y))) | |
:where | |
((x 2) | |
(y 3)) | |
(+ 1 w))) | |
(lwt ((w (* x y))) | |
:where ((x 2) | |
(y 3)) | |
(+ 1 w)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment