reduceOptional abstract method
Performs a reduction and returns an Optional of the result.
Example
final max = IntStream.of([1, 2, 3, 4, 5])
.reduceOptional((a, b) => a > b ? a : b);
Implementation
Optional<int> reduceOptional(int Function(int, int) op);