Map
Methods for the map type.
| Name | Summary |
|---|---|
| has | Checks if the map has a key. |
| items | Returns an iterator over the map's key-value pairs. |
| keys | Returns an iterator over the map's keys. |
| len | Returns the number of key-value pairs in the map. |
| values | Returns an iterator over the map's values. |
fn map.has(key) -> bool
Checks if the map has a key.
Parameters
| key | The key to check. |
bool
fn map.items() -> iterator<T>
Returns an iterator over the map's key-value pairs.
Returns
iterator<T>
fn map.keys() -> iterator<T>
Returns an iterator over the map's keys.
Returns
iterator<T>
fn map.len() -> int
Returns the number of key-value pairs in the map.
Returns
int
fn map.values() -> iterator<T>
Returns an iterator over the map's values.
Returns
iterator<T>