Retrieves the equivalent value from this collection.
This is a slow operation that visits each value in the collection.
By default, the equality operator is Object.equals
.
Note that Array
does not subscribe to this interpretation of the get
method.
For the purposes of get
, an array behaves like a map from indexes to the
values at those indexes.
Gets the value for a key in a map.
Retrieves the equivalent value from the collection.