Function | Description |
---|---|
static fun fromList(list) | Creates a new map from a list of key-value pairs. |
native fun put(key, value) | Puts a key and value into the map, overriding any previous value associated with the key. |
native fun get(key) | Gets a value from the map by its key . |
native fun containsKey(key) | Checks if the map contains the key key . |
native fun containsValue(value) | Checks if the map contains any entry with the value value . |
native fun keys() | Gets a list of all keys in the map. |
native fun values() | Gets a list of all values in the map. |
Gets a value from the map by its key
.
key
|
The key to look for |
The value associated with the given key
If the key
is not found