Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Collection element

From Coderwiki

An element of a collection is an item of the collection.

Every element in a collection has an index based on where it is in the collection.

This index is not always an integer and does not always determine where it is stored in memory. In a hashmap for example, elements are given a hashmap key, which could be any hashable type, for example, a string.