| isOrderedAndUnique |
fun <T, I : Comparable<I>> Iterable<T>.isOrderedAndUnique(extractId: T.() -> I): BooleanDetermine if an iterable data types contents are ordered and unique, based on their Comparable.compareTo function. |
| noneOrSingle |
fun <T> Iterable<T>.noneOrSingle(predicate: (T) -> Boolean): T?Returns the single element matching the given predicate, or fun <T> Iterable<T>.noneOrSingle(): T?Returns single element, or |