-
-
Save tomjack/9f89e03eb42bef6ddeab to your computer and use it in GitHub Desktop.
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
(defn stoppable-walk [f form] | |
(let [form (f form)] | |
(if (reduced? form) | |
form | |
(w/walk (partial stoppable-walk f) identity form)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment