-
-
Save pepijndevos/9b5abe112cf69ea5356e to your computer and use it in GitHub Desktop.
Clojure macro like -> and ->> with explicit insertion point
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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