Keylkeys

From AOLserver Wiki
Revision as of 18:35, 4 March 2010 by Josephbui (talk | contribs) (Undo revision 5686 by Jenika (Talk))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Man page: http://aolserver.com/docs/tcl/keylkeys.html


NAME

keylkeys - Return the keys for a keyed list

SYNOPSIS

keylkeys listvar ?key?

DESCRIPTION

This command returns a list of keys for the keyed list listvar. If key is specified, the values for that key are returned instead.
Keyed lists are an extension of Tcl provided by the TclX package. They are an alternative to using ns_set, but we highly recommend using ns_set instead of keyed lists where possible. The commands provided by AOLserver were taken directly from a 1995 version of the TclX package.

EXAMPLES

   % keylset mylist a 1 {b c} 2
   % keylkeys mylist
   a {b c}
   % keylkeys mylist a
   1

SEE ALSO

TclX [1], keyldel, keylget, keylset

Category Documentation - Category Core Tcl API