Map
Last updated
Last updated
Operators and functions for working with map arrays (map type) are described here. map.typename means that you can specify any type name but in the case of the binary operator this type must be the same in both maps.
The bool function returns false if the map is empty, otherwise, it returns true.
The Del function deletes the specified key and its value from the map array. The m parameter is returned.
The IsKey function returns true if there is a value with the specified key in the map and false, otherwise.
The Key function returns the item key by its index. For example, this function can be used in the for loop to get the item key.
Operator | Result | Description |
* map.typename | int | Returns the number of elements in the map. |
map.typename ? | bool | Calls bool(map.typename). |
map.typename = map.typename | map.typename | Assignment operator. |
map.typename &= map.typename | map.typename | Creates a clone of the map. The new variable will work with the same data set. |
map.typename [ str ] | typename | Sets/gets a map value by key. |