sum abstract method

int sum()

Returns the sum of the elements.

Example

final sum = IntStream.range(1, 5).sum(); // 10

Implementation

int sum();