Skip to content

Instantly share code, notes, and snippets.

@fogus
Created January 6, 2013 16:06
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fogus/4468183 to your computer and use it in GitHub Desktop.
Save fogus/4468183 to your computer and use it in GitHub Desktop.
(defn postfix [& e]
(reduce #(if (fn? %2)
(let [[l r & m] %]
(cons (%2 r l) m))
(cons %2 %)) [] e))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment