8 ms·
In Clojure it does: (-> "Hello, World" string/uppercase (string/split #",") first string/trim) `->` is a threadin
by askonomm 4y ago
In Clojure it does:
(-> "Hello, World"
string/uppercase
(string/split #",")
first
string/trim)
`->` is a threading-first macro, and `->>` is a threading last macro. More here: https://clojure.org/guides/threading_macros https://clojure.org/guides/threading_macros
- eyelidlessness 4y agoBeat me to it while I was typing! Alas, I’m on mobile and your example is a better illustration of the point.