@MutMap[S @ {...}]
A Map supporting assignment and removal.
Inherits from: AssignMap[S]
Methods
clear() overload 2 of 2
Removes every pair.
delete key -> Bool overload 2 of 2
Removes every value of a key, reporting whether any were present.
Parameters
| Name | Type | Description |
|---|---|---|
key |
Value |
pop[K, D = Never] key … -> (IndexItem[S, K] | D) overload 2 of 2
Removes one instance, defaulting to the first. Negative instances count backward.
Parameters
| Name | Type | Description |
|---|---|---|
key |
K |
|
instance? |
Int |
|
:default? |
D |
|
:else? |
(() -> D) |
Errors
IndexError if the instance is missing and no fallback is supplied.