Home
The Toolkit for Online Communities
15903 Community Members, 0 members online, 1998 visitors today
Log In Register

template::util::list_of_lists_to_array

OpenACS Home : ACS API Browser : template::util::list_of_lists_to_array

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
array_ref
Source code:

  upvar $array_ref array

  foreach pair $lists {

    set key [lindex $pair 0]
    set value [lindex $pair 1]

    set array($key) $value
  }

XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: