Pitch: Method to sum numeric arrays

Though this is just a specialized version of reduce, I think for code readability it's a worthwhile addition to the standard library. Particularly, reduce is not well understood or often leveraged the same way map and filter are, likely in part due to its non-obvious name.

There is also precedence from adding allSatisfy, which is a simple derivative of filter.

There was a proposal as well for adding a fold method or reduce overload which was well-received but stalled before getting to a pitch phase:

1 Like