maxInIterable<I, R> function

num? maxInIterable<I, R>(
  1. Iterable<num> iterable
)

Uses mergeIterable to find maximum value in iterable.

Implementation

num? maxInIterable<I, R>(Iterable<num> iterable) => iterable.isEmpty
    ? null
    : mergeIterable(
        iterable, (num? total, num value) => value > total! ? value : total, 0);