Rechercher une page de manuel
lindex.3tcl
Langue: en
Version: 8.2 (debian - 07/07/09)
Section: 3 (Bibliothèques de fonctions)
NAME
lindex - Retrieve an element from a listSYNOPSIS
lindex list indexDESCRIPTION
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 substitution and command substitution do not occur. If index is negative or greater than or equal to the number of elements in value, then an empty string is returned. If index has the value end, it refers to the last element in the list, and end-integer refers to the last element in the list minus the specified integer offset.
SEE ALSO
list(3tcl), lappend(3tcl), linsert(3tcl), llength(3tcl), lsearch(3tcl), lsort(3tcl), lrange(3tcl), lreplace(3tcl)KEYWORDS
element, index, listContenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre