single

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

Returns the single element in the collection or throws.