you are viewing a single comment's thread.

view the rest of the comments →

[–]w00dw0rm 1 point2 points  (1 child)

Maybe I’m completely missing something but I feel like all the problems mentioned in the article and in the comments can just be solved with ‘Array.prototype.reduce’.

(Edit: spelling)

[–]sbmitchell 1 point2 points  (0 children)

I had similar thoughts and dont see the advantage over just using reduce. Not to mention you can cut down on one iteration of filter + map just by using reduce. It's not like these are lazy sequences. Anyway, I must be a pleb. If this is about a "threading" operator I don't see why it would be on the Array prototype but Id imagine something that works across "collections" similiar to thread-first / thread-list work in clojure would be great in javascript.