single
Returns the single element, or throws an exception if the sequence is empty or has more than one element.
The operation is terminal.
Try the revamped Kotlin docs design →
Try the revamped Kotlin docs design!
Returns the single element, or throws an exception if the sequence is empty or has more than one element.
The operation is terminal.