Skip to content

Instantly share code, notes, and snippets.

@jclaggett
Created October 11, 2010 16:07
Show Gist options
  • Save jclaggett/620772 to your computer and use it in GitHub Desktop.
Save jclaggett/620772 to your computer and use it in GitHub Desktop.
(defmacro let2
"Alternate let block that doesn't have a body, just bindings. The last binding is returned."
([] nil)
([& bindings]
`(let [~@bindings] ~(first (take-last 2 bindings))) ) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment