dict info
Gives text for people with the count of entries of a dict.
dict info DICT
Description
Gives a line of text with the count of keys of DICT, such as 2 entries in table. Tcl gives the statistics of its hash table here. The text is for people: a script uses dict size for the count.
Arguments
| Argument | Type | Default | Description |
|---|---|---|---|
| DICT | dict | required | The dict. |
Returns
A line of text.
Examples
% dict info {a 1 b 2}
2 entries in table
% dict info {}
0 entries in table
Errors
% dict info {a}
missing value to go with key
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztcl 1.0.0-beta.1