concat
[argarg ...]}
Command: concat
Returns concatenation of each list arg as a single list.
joinlist [joinString]}
Command: join
Returns string created by joining all elements of list with joinString.
lappendvarName [valuevalue ...]}
Command: lappend
Appends each value to the end of the list stored in varName.
lindexlistindex}
Command: lindex
Returns value of element at index in list.
linsertlistindexelement [element ...]}
Command: linsert
Returns new list formed by inserting given new elements at index in list.
list
[argarg ...]}
Command: list
Returns new list formed by using each arg as an element.
llengthlist}
Command: llength
Returns number of elements in list.
lrangelistfirstlast}
Command: lrange
Returns new list from slice of list at indices first through
last inclusive.
lreplacelistfirstlast [valuevalue ...]}
Command: lreplace
Returns new list formed by replacing elements first through last
in list with given values.
lsearch
[mode] listpattern}
Command: lsearch
Returns index of first element in list that matches pattern (-1 for
no match). Mode may be -exact, -glob (default), or -regexp.
lsort
[switches] list}
Command: lsort
Returns new list formed by sorting list according to switches. These are
quad -ascii: string comparison (default)
quad -dictionary: like -ascii but ignores case and is number smart.
quad -index ndx: treats each elements as a sub-list and sorts on the
ndxth element
quad -integer: integer comparison
quad -real: floating-point comparison
quad -increasing: sort in increasing order (default)
quad -decreasing: sort in decreasing order
quad -command cmd: Use command which takes two arguments
and returns an integer less than, equal to, or greater than zero
splitstring [splitChars]}
Command: split
Returns a list formed by splitting string at each character in splitChars.
Note:
list indices start at 0 and the word end may be
used to reference the last element in the list.
The source of theses pages is the excellent Tcl/Tk Quick Reference Guide.