Skip to content

Instantly share code, notes, and snippets.

@tomjack
Created October 9, 2012 04:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tomjack/9f89e03eb42bef6ddeab to your computer and use it in GitHub Desktop.
Save tomjack/9f89e03eb42bef6ddeab to your computer and use it in GitHub Desktop.
(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