3 ms·
(reduce + (map (comp inc inc) (range 10))) is not analogous to (_ + 2). The more similar and idiomatic code is: (reduce + (map #(+ % 2) (range 10)))
by rjeli 11y ago
(reduce + (map (comp inc inc) (range 10)))
is not analogous to (_ + 2). The more similar and idiomatic code is:
(reduce + (map #(+ % 2) (range 10)))