Skip to content

Instantly share code, notes, and snippets.

@fredyr
Created May 9, 2016 11:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fredyr/ab5477ad27d807295978fda5f88de61a to your computer and use it in GitHub Desktop.
Save fredyr/ab5477ad27d807295978fda5f88de61a to your computer and use it in GitHub Desktop.
(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