single

open fun <T> single(source: Iterable<out T>): T

Returns the single element in the collection or throws.