A static extension which provides utility functions for Maps.
For example, add using MapTools then call map.values().
See also:
Static methods
staticclone<K, T>(map:Null<Map<K, T>>):Null<Map<K, T>>
Create a new array with all elements of the given array, to prevent modifying the original.
staticdeepClone<K, T, U>(map:Map<K, U>):Map<K, T>
Create a new array with clones of all elements of the given array, to prevent modifying the original.
statickeyValues<K, T>(map:Null<Map<K, T>>):Array<K>
Return a list of keys from the map (as an array, rather than an iterator). TODO: Rename this?
staticmerge<K, T>(a:Map<K, T>, b:Map<K, T>):Map<K, T>
Create a new map which is a combination of the two given maps.
Parameters:
a | The base map. |
|---|---|
b | The other map. The values from this take precedence. |
Returns:
The combined map.