Match the functions with their descriptions:
Retrieve single element
Match functions and results
Report a typo
Match the items from left and right columns
find()
elementAt()
getOrNull()
getOrElse()
first()
Returns the element at the specific index position or throws an exception
Returns the first element in a non-empty collection
Returns null when the index position is out of the collection bounds
Returns the first element of a collection according to a predicate or null if it does not exist
Returns the result of the lambda if the index position is out of the collection bounds
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.