util_list_to_ns_set (public, deprecated)
util_list_to_ns_set aList
Defined in packages/acs-tcl/tcl/deprecated-procs.tcl
Deprecated. Invoking this procedure generates a warning.
Convert a list in the form "key value key value ..." into an ns_set. DEPRECATED: this proc can be replaced with a oneliner using list expansion.
- Parameters:
- aList (required)
- The list to convert
- Returns:
- The id of a (non-persistent) ns_set
- See Also:
- ns_set create ?name? ?key? ?value? ...
- Testcases:
- No testcase defined.
Source code: ad_log_deprecated proc util_list_to_ns_set # set setid [ns_set create] # foreach {k v} $aList { # ns_set put $setid $k $v # } # return $setid return [ns_set create s {*}$aList]XQL Not present: PostgreSQL, Oracle Generic XQL file: packages/acs-tcl/tcl/deprecated-procs.xql