The threading macros are more useful when you have more nested code. For example:
(->> coll (remove nil?) (filter :available?) (map :stock) (reduce +))
(reduce + (map :stock (filter :available? (remove nil? coll))))
The threading macros are more useful when you have more nested code. For example:
Is perhaps a little easier to read than: