first
Returns the first element.
Since Kotlin
1.0Throws
if the array is empty.
Returns the first element matching the given predicate.
Since Kotlin
1.0Throws
if no such element is found.
Returns the first element.
Since Kotlin
1.0Throws
if the collection is empty.
Returns the first element.
Since Kotlin
1.0Throws
if the list is empty.
Returns the first element.
Since Kotlin
1.3Throws
if the array is empty.
Returns the first element matching the given predicate.
Since Kotlin
1.3Throws
if no such element is found.