Keylkeys

From AOLserver Wiki
Jump to: navigation, 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