lindex(n) Tcl Built-In Commands lindex(n)_________________________________________________________________NAMElindex - Retrieve an element from a list
SYNOPSISlindex list index
_________________________________________________________________DESCRIPTION
This command treats list as a Tcl list and returns the
index'th element from it (0 refers to the first element of
the list). In extracting the element, lindex observes the
same rules concerning braces and quotes and backslashes as
the Tcl command interpreter; however, variable substitu-
tion and command substitution do not occur. If index is
negative or greater than or equal to the number of ele-
ments in value, then an empty string is returned. If
index has the value end, it refers to the last element in
the list.
KEYWORDS
element, index, list
Tcl 7.4 1