TYPE
map
type map<K, V>: iterable<(K, V)>A mutable map from keys of type K to values of type V, where K is immutable, and V may be either
mutable or immutable. map<K,V> is a subtype of iterable<(K,V)>`. It is implemented as a hash-map, with
iteration order determined by the order in which the entries were added.
See Also
Since 0.6.0
Methods
- clear
- Clear this map; i.e. remove all its entries. Immediately after this method returns, this map is
- contains
- Check if this map contains the given key.
- empty
- Check if this map is empty.
- get
- Get the value associated with the given key in this map.
- get_or_default
- Get the value associated with the given key in this map.
- get_or_null
- Get the value associated with the given key in this map.
- join_to_text
- Generate a textual representation of this iterable.
- keys
- Returns a set containing the keys of this map.
- len
- Get the size (number of entries) of this map.
- map
- put
- Associate the specified value with the specified key in this map.
- putAll
- Update this map with the entries from another map. Where a key is found in both this and the passed
- put_all
- Update this map with the entries from another map. Where a key is found in both this and the passed
- put_all_copy
- Returns a new map with the mappings of this map combined with the mappings of the given map.
- remove
- Remove an entry from this map.
- remove_or_null
- Remove an entry from this map.
- size
- Get the size (number of entries) of this map.
- str
- Returns a textual representation of this map.
- to_text
- Returns a textual representation of this map.
- values
- Returns a list containing the values of this map.