Skip to content

Instantly share code, notes, and snippets.

@halgari
Created December 10, 2013 18:58
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 halgari/7896099 to your computer and use it in GitHub Desktop.
Save halgari/7896099 to your computer and use it in GitHub Desktop.
(defmacro when-let* [bindings & body]
(reduce
(fn [acc x]
`(when-let ~(vec x)
~acc))
`(do ~@body)
(reverse (partition 2 bindings))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment