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