min abstract method

Optional<T> min([
  1. int comparator(
    1. T,
    2. T
    )?
])

Returns the minimum element of this stream according to the provided Comparator.

Example

final min = GenericStream.of([3, 1, 4, 1, 5])
    .min((a, b) => a.compareTo(b));

Implementation

Optional<T> min([int Function(T, T)? comparator]);