Created
August 3, 2014 05:13
-
-
Save shayanjm/0b3f616a473885ab466a to your computer and use it in GitHub Desktop.
Postfix notation in Clojure
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
(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