Reference

Map

Constructor
Input A list of pairs separated by comma.
Output A map containing all the pairs.

Signature

Example

Index
Input A map and a key.
Output The value associated with the key.

Signature

Example

At
Input A map and a key.
Output The value associated with the key.

Signature

Example

Set
Input A map, a key, and a value.
Output A new map containing the new key-value pair.

Signature

Example

Keys
Input A map.
Output A list containing all the keys.

Signature

Example

Values
Input A map.
Output A list containing all the values.

Signature

Example

Contains key
Input A map and a key.
Output True if the key is in the map, false otherwise.

Signature

Example

Is empty
Input A map.
Output True if the map is empty, false otherwise.

Signature

Example

Is not empty
Input A map.
Output True if the map is not empty, false otherwise.

Signature

Example

Remove at
Input A map and a key.
Output A new map with the key removed.

Signature

Example

Length
Input A map.
Output The number of key-value pairs in the map.

Signature

Example