The Tcl/Tk documentation is very good, so I read the documentation for those details, eg for lrange,
lrange list first last List must be a valid Tcl list. This command will return a new list consisting of elements first through last, inclusive ... (not put it all here because it goes on a bit :)