IterableArgMinMax<T> extension

Index of min/max by a comparable key.

on

Methods

argMaxBy<C extends Comparable<C>>(C keyOf(T)) int?

Available on Iterable<T>, provided by the IterableArgMinMax extension

Index of the element with maximum keyOf; null if empty.
argMinBy<C extends Comparable<C>>(C keyOf(T)) int?

Available on Iterable<T>, provided by the IterableArgMinMax extension

Index of the element with minimum keyOf; null if empty.