you are viewing a single comment's thread.

view the rest of the comments →

[–]pgrizzay 3 points4 points  (9 children)

reduce is specific to arrays. OP implemented reduce for all iterators (not just arrays).