minInIterable<I, R> function
Uses mergeIterable to find minimum value in iterable
.
Implementation
num? minInIterable<I, R>(Iterable<num> iterable) => iterable.isEmpty
? null
: mergeIterable(
iterable,
(num? total, num value) => value < total! ? value : total,
iterable.first);