Reference
Map
Constructor
| Input | A list of pairs separated by comma. |
| Output | A map containing all the pairs. |
Index
| Input | A map and a key. |
| Output | The value associated with the key. |
At
| Input | A map and a key. |
| Output | The value associated with the key. |
Set
| Input | A map, a key, and a value. |
| Output | A new map containing the new key-value pair. |
Keys
| Input | A map. |
| Output | A list containing all the keys. |
Values
| Input | A map. |
| Output | A list containing all the values. |
Contains key
| Input | A map and a key. |
| Output | True if the key is in the map, false otherwise. |
Is empty
| Input | A map. |
| Output | True if the map is empty, false otherwise. |
Is not empty
| Input | A map. |
| Output | True if the map is not empty, false otherwise. |
Remove at
| Input | A map and a key. |
| Output | A new map with the key removed. |
Length
| Input | A map. |
| Output | The number of key-value pairs in the map. |