lindex -- retrieve an element from a list
This command treats
as a Tcl list and returns the element which is
elements from the beginning of the list (for example, 0 refers to the first element, 1 to the second, and so on). In extracting the element,
observes the same rules concerning braces, quotes, and backslashes as the Tcl command interpreter; however, variable substitution and command substitution do not occur. If
is negative, greater than or equal to the number of elements in
, then an empty string is returned. If
has the value
, it refers to the last element in the list.
25 April 2004
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004