I would like to get all elements following a particular index of a list. This could be written as:
set foo {0 1 2 3 4 5 6 <...> n}
puts [lrange $foo 1 [llength $foo]]
However, it seems like a waste to compute the length of the list. It would be nice if the last argument to lrange was optional and omitting it meant to continue until the end of the list, but, alas that is not the case today.
Is there some other way of doing this efficiently in Tcl without computing the length of the list?