Skip to content

Instantly share code, notes, and snippets.

@Gonzih
Created October 1, 2015 06:45
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 Gonzih/6cf053c5ed1c1a808816 to your computer and use it in GitHub Desktop.
Save Gonzih/6cf053c5ed1c1a808816 to your computer and use it in GitHub Desktop.
as-> in wisp
; A bit different from clojure since no lazy sequences
(defmacro as->
[expr name & forms]
`(let [~name ~expr
~@(interleave (repeat (count forms) name) forms)]
~name))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment