Hacker News new | ask | show | jobs
by askonomm 1203 days 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
1 comments

Beat me to it while I was typing! Alas, I’m on mobile and your example is a better illustration of the point.