ActiveAnno

Web-based responsive document annotation tool

View the Project on GitHub MaxMello/ActiveAnno

activeannoservice / common / kotlin.collections.Iterable

Extensions for kotlin.collections.Iterable

Name Summary
allAndNotEmpty Equivalent to kotlins all(), but return false if the iterable is empty where all() would return true.fun <T> Iterable<T>.allAndNotEmpty(predicate: (T) -> Boolean): Boolean
maxByOrNullIfNull Equivalent to kotlins maxBy, but allow for the selector to return null, in which case null will be returned.fun <T, R : Comparable<R>> Iterable<T>.maxByOrNullIfNull(selector: (T) -> R?): T?