Version 3 of lrange

Updated 2001-10-23 10:23:45

http://www.purl.org/tcl/home/man/tcl8.4/TclCmd/lrange.htm


lrange $x 0 end may be used to force a list x to have list (as opposed to string) representation - this enhances performance in some situations.

LV To get the benefits of this, do I need to assign the lrange value to x? Is there a comparison of the various techniques for forcing a string to be a list with regards to performance - is lrange the fastest?


See also list, lappend, lindex, linsert, llength, lreplace, lsearch, lsort .


Tcl syntax help - Arts and crafts of Tcl-Tk programming - Category Command