insert(obj, ...)
obj = insert(obj, ...)
| Parameter | Description |
|---|---|
| obj | object that implements keyed insertion. |
| key | key or array of keys to insert. |
| value | value or array of values associated with the keys. |
| Parameter | Description |
|---|---|
| obj | updated object when the concrete implementation returns one. |
insert dispatches insertion to the object type passed as first argument.
If the first argument does not implement insertion, Nelson reports that the function is not implemented for that type.
d = dictionary(["one" "two"], [1 2]);
d = insert(d, "three", 3)
| Version | Description |
|---|---|
| 2.0.0 | initial version |