Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@pepijndevos
Created December 28, 2009 19:09
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pepijndevos/9b5abe112cf69ea5356e to your computer and use it in GitHub Desktop.
Save pepijndevos/9b5abe112cf69ea5356e to your computer and use it in GitHub Desktop.
Clojure macro like -> and ->> with explicit insertion point
(defmacro maze-thread "Threads the expr through the forms at the position of %."
[& expr] `(let [~'% ~@(interpose '% expr)] ~'%))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment