collections / Map

Maps associate a key with a value. Maps are ordered by a comparison function or method. Maps can grow.

Maps are good for associating ordinal attributes with objects, since you scan a range of attributes easily.

However, if there are many attributes, Maps can be slow like Lists since the comparison function must be run over the keys until a match is found.