I have seen the clojure symbol -> used in many places, but I am unsure as to what this symbol is called and does, or even whether it is part of standard clojure. Could someone e
It's a way to write code left to right, instead of inside out, e.g.
(reduce (map (map xs bar) foo) baz)
becomes
(-> xs (map bar) (map foo) (reduce baz))
You might want to read the source, it's here.
EDIT: Fixed my confusion of ->
with ->>
, thanks to amalloy. Sadly my example is now quite unlikely to appear in practice.