sum abstract method

double sum()

Sums the elements of the stream.

Example

final sum = DoubleStream.of([1.5, 2.5, 3.5]).sum(); // 7.5

Implementation

double sum();