Skip to content

Instantly share code, notes, and snippets.

@qerub
Created June 12, 2012 15:23
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 qerub/2918167 to your computer and use it in GitHub Desktop.
Save qerub/2918167 to your computer and use it in GitHub Desktop.
The Difference between -> and ->> in Clojure
user=> (use 'clojure.walk)
nil
user=> (macroexpand-all '(-> x (1 a) (2 b)))
(2 (1 x a) b)
user=> (macroexpand-all '(->> x (1 a) (2 b)))
(2 b (1 a x))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment