IterableArgMinMax<T> extension
Index of min/max by a comparable key.
- on
-
- Iterable<
T>
- Iterable<
Methods
-
argMaxBy<
C extends Comparable< (C> >C keyOf(T)) → int? -
Available on Iterable<
Index of the element with maximumT> , provided by the IterableArgMinMax extensionkeyOf; null if empty. -
argMinBy<
C extends Comparable< (C> >C keyOf(T)) → int? -
Available on Iterable<
Index of the element with minimumT> , provided by the IterableArgMinMax extensionkeyOf; null if empty.