1mNAME0m
       lrange - Return one or more adjacent elements from a list

1mSYNOPSIS0m
       1mlrange 4m22mlist24m 4mfirst24m 4mlast0m


1mDESCRIPTION0m
       4mList24m  must  be  a  valid Tcl list.  This command will return a new list
       consisting of elements 4mfirst24m through 4mlast24m, inclusive.   4mFirst24m  or  4mlast0m
       may  be 1mend 22m(or any abbreviation of it) to refer to the last element of
       the list.  If 4mfirst24m is less than zero, it is  treated  as  if  it  were
       zero.   If  4mlast24m  is greater than or equal to the number of elements in
       the list, then it is treated as if it were 1mend22m.  If  4mfirst24m  is  greater
       than  4mlast24m then an empty string is returned.  Note: ``1mlrange 4m22mlist24m 4mfirst0m
       4mfirst24m'' does not always  produce  the  same  result  as  ``1mlindex  4m22mlist0m
       4mfirst24m''  (although it often does for simple fields that aren't enclosed
       in braces); it does, however,  produce  exactly  the  same  results  as
       ``1mlist [lindex 4m22mlist24m 4mfirst24m1m]22m''


1mSEE ALSO0m
       lappend(n), lindex(n), linsert(n), list(n), llength(n), lreplace(n)


1mKEYWORDS0m
