Returns the sum of the source.
Collector that returns the sum of the source.
const result = sum<number>()([1, 2, 3]);console.log(result); // 6 Copy
const result = sum<number>()([1, 2, 3]);console.log(result); // 6
Returns the sum of the source.