Keylset

From AOLserver Wiki
Jump to navigation Jump to search

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


NAME

keylset - Set a key-value pair in a keyed list

SYNOPSIS

keylset listvar key value ?key value...?

DESCRIPTION

This command sets one or more key-value pairs in the keyed list listvar.
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, keylkeys

Category Documentation - Category Core Tcl API