requireSingleOrNull

Check sequence only has one element or null if not found.


fun requireSingleOrNull(condition: T.() -> Boolean): Self?