single
Returns the single element, or throws an exception if the sequence is empty or has more than one element.
fun <T> Sequence<T>.single(): T(source)
fun main() {
val singleElementSeq = sequenceOf(10)
println(singleElementSeq.single()) // prints 10
}