3 ms·
I wonder why the author left the thread-first and thread-last macros as a footnote. This: (reduce + (map (comp inc inc) (range 10))) And this: (->>
by edgyswingset 11y ago
I wonder why the author left the thread-first and thread-last macros as a footnote.
This:
(reduce + (map (comp inc inc) (range 10)))
And this:
(->>
(range 10)
(map (comp inc inc))
(reduce +))
Are totally different from a readability standpoint. Yeah, there's some initial syntax to get used to, but in the long run I've noticed it to be the difference between immediately understanding what some code is doing and having my eyes glaze over.