tsv names
Gives the names of the shared arrays.
tsv::names ?PATTERN?
Description
The command tsv::names gives the name of each shared array of the group, or of each one whose name matches the glob PATTERN, in no set order.
Arguments
| Argument | Type | Default | Description |
|---|---|---|---|
| PATTERN | glob pattern | * | The names to give. |
Returns
A list of array names.
Examples
% tsv::set a x 1
> tsv::set b x 1
> lsort [tsv::names]
a b
# The arrays a and apple match.
% tsv::set apple x 1
> tsv::set box x 1
> lsort [tsv::names a*]
a apple
Errors
% tsv::names a b
wrong # args: should be "tsv::names ?pattern?"
-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