first
Returns the first element.
The operation is terminal.
Since Kotlin
1.0Throws
if the sequence is empty.
Returns the first element matching the given predicate.
Since Kotlin
1.0Throws
if no such element is found.
The operation is terminal.
Returns the first element.
The operation is terminal.
if the sequence is empty.
Returns the first element matching the given predicate.
if no such element is found.
The operation is terminal.
Thanks for your feedback!