3 ms·
No, not at all. The threading macros are more useful when you have more nested code. For example: (->> coll (remove nil?) (filter :avail
by weavejester 10y ago
No, not at all.
The threading macros are more useful when you have more nested code. For example:
(->> coll
(remove nil?)
(filter :available?)
(map :stock)
(reduce +))
Is perhaps a little easier to read than:
(reduce +
(map :stock
(filter :available?
(remove nil? coll))))