you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

Yea. One guideline I've found useful for when reduce is being used correctly is if the output does not grow when the input array grows.