template::util::list_of_lists_to_array (public)

 template::util::list_of_lists_to_array lists array_ref

Defined in packages/acs-templating/tcl/util-procs.tcl

Converts a list of lists in the form { { key value } { key value } ... } to an array.

Parameters:
lists (required)
array_ref (required)

Testcases:
No testcase defined.
Source code:

    upvar $array_ref array

    foreach pair $lists {
        lassign $pair key value
        set array($key$value
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: