single

open fun single(): T

Get the single element or throw an exception if there is no such element or more than one element.


open fun single(condition: T.() -> Boolean): T