-
-
Save amalloy/1450357 to your computer and use it in GitHub Desktop.
Recursively macroexpand to depth n
This file contains hidden or 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
(defn macroexpand-n [n form] | |
(if (zero? n) | |
form | |
(recur (dec n) | |
(macroexpand-1 form)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment