Try the revamped Kotlin docs design →
Try the revamped Kotlin docs design!
first
Returns the first element.
The operation is terminal.
Exceptions
NoSuchElementException
- if the sequence is empty.
Returns the first element matching the given predicate.
Exceptions
NoSuchElementException
-
if no such element is found.
The operation is terminal.