(reduce + (map (comp inc inc) (range 10)))
Clojure people would normally use thread macro, like so:
(->> (range 10) (map #(+ % 2)) (reduce +))
This would be similar to the Scala version in term of order.
(reduce + (map (comp inc inc) (range 10)))
Clojure people would normally use thread macro, like so:
(->> (range 10) (map #(+ % 2)) (reduce +))
This would be similar to the Scala version in term of order.