single
fun <T> Sequence<T>.single(): T
Returns the single element, or throws an exception if the sequence is empty or has more than one element.
The operation is terminal.
fun <T> Sequence<T>.single(): T
Returns the single element, or throws an exception if the sequence is empty or has more than one element.
The operation is terminal.