Returns a collector that returns the sum of all entries in the Iterable.
Collector that returns the sum of all entries in the Iterable.
const result = sumAsync()([1, 2, 3]);console.log(result); // 6 Copy
const result = sumAsync()([1, 2, 3]);console.log(result); // 6
Returns a collector that returns the sum of all entries in the Iterable.