maxInIterable<I, R> function
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,
iterable.first,
);