next up previous
Next: Additional Tcl Details Up: Tcl: A Generic Previous: Procedures

Lists

Syntax:
List-related commands:
    concat    lindex    llength   lsearch
    foreach   linsert   lrange    lsort
    lappend   list      lreplace
Examples:
lindex {a b {c d e} f g} 2

c d e
lsort {red green blue}

blue green red



CS488/688: Introduction to Interactive Computer Graphics
University of Waterloo
Computer Graphics Lab

cs488@cgl.uwaterloo.ca