ActiveAnno

Web-based responsive document annotation tool

View the Project on GitHub MaxMello/ActiveAnno

activeannoservice / common / kotlin.collections.Iterable / maxByOrNullIfNull

maxByOrNullIfNull

inline fun <T, R : Comparable<R>> Iterable<T>.maxByOrNullIfNull(selector: (T) -> R?): T?

Equivalent to kotlins maxBy, but allow for the selector to return null, in which case null will be returned.