code-reviews

timgilbert 2018-12-03T23:17:52.003200Z

Seems pretty idiomatic to me. One thing I noticed is you could probably use (reduce +) in place of (reduce #(map + %1 %2))

jaihindhreddy 2018-12-04T16:50:20.005Z

I want (reduce #(map + % %2) [[1 2] [1 2] [3 5] [2 6]])

jaihindhreddy 2018-12-04T16:50:45.005200Z

(reduce + [[1 2] [1 2] [3 5] [2 6]]) doesn't work here.

timgilbert 2018-12-03T23:20:27.004600Z

...and I have a hunch that you could find something a little simpler than (filter #(apply = %)), though I can't think of it offhand. (Using apply like this is a faint code smell to me personally, though it certainly has its place)

jaihindhreddy 2018-12-04T16:49:02.004800Z

Thanks a lot for your insights.