requireSorted

fun <T : Comparable<T>> Buffer<T>.requireSorted()

Checks that the Buffer is sorted (ascending) and throws IllegalArgumentException if it is not.

Sources

Link copied to clipboard