Skip to content

Instantly share code, notes, and snippets.

@shayanjm
Created August 3, 2014 05:13
Show Gist options
  • Save shayanjm/0b3f616a473885ab466a to your computer and use it in GitHub Desktop.
Save shayanjm/0b3f616a473885ab466a to your computer and use it in GitHub Desktop.
Postfix notation in Clojure
(defmacro postfix-notation
"I'm too indie for prefix notation"
[expression]
(conj (butlast expression) (last expression)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment