Skip to content

Instantly share code, notes, and snippets.

@Ariarule
Created June 13, 2012 23:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ariarule/2927064 to your computer and use it in GitHub Desktop.
Save Ariarule/2927064 to your computer and use it in GitHub Desktop.
Reimplement Trampoline (4clojure)
(fn [f & s]
(let [result (apply f s)]
(if (fn? result)
(recur result ())
result)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment