Match functions and results

Report a typo

Match the functions with their descriptions:

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
___

Create a free account to access the full topic