tsv keyldel
Removes keys of a keyed list in a shared array.
tsv::keyldel ARRAY ELEMENT KEY ?KEY ...?
Description
The command tsv::keyldel removes each KEY and its value from the keyed list in the element. A key that does not exist is an error.
Arguments
| Argument | Type | Default | Description |
|---|---|---|---|
| ARRAY | array name | required | The name of the shared array. |
| ELEMENT | string | required | The name of the element. |
| KEY | key, or a path of keys with dots | required | A key to remove. |
Returns
An empty string.
Examples
% tsv::keylset k e name Ann age 30
> tsv::keyldel k e age
> tsv::get k e
{name Ann}
Errors
% tsv::keylset k e name Ann
> tsv::keyldel k e nope
key "nope" not found
-errorcode NONE
% tsv::keylset k e name Ann
> tsv::keyldel k e
wrong # args: should be "tsv::keyldel k e key ?key ...?"
-errorcode TCL WRONGARGS
Facts
- Capability
thread. A new interpreter does not have it until the host turns it on.- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztcl 1.0.0-beta.1