tipsy
12/16/2017, 11:18 AM/**
* Returns the first element yielding the largest value of the given function or `null` if there are no elements.
*/
public inline fun <T, R : Comparable<R>> Iterable<T>.maxBy(selector: (T) -> R): T? {
Czar
12/16/2017, 11:21 AM