1mNAME0m
       lreplace - Replace elements in a list with new elements

1mSYNOPSIS0m
       1mlreplace 4m22mlist24m 4mfirst24m 4mlast24m ?4melement24m 4melement24m 4m...24m?


1mDESCRIPTION0m
       1mlreplace 22mreturns a new list formed by replacing one or more elements of
       4mlist24m with the 4melement24m arguments.  4mfirst24m and 4mlast24m specify the first  and
       last  index of the range of elements to replace.  0 refers to the first
       element of the list, and 1mend 22m(or any abbreviation of it) may be used to
       refer  to  the  last element of the list.  If 4mlist24m is empty, then 4mfirst0m
       and 4mlast24m are ignored.

       If 4mfirst24m is less than zero, it is considered to refer to the first ele-
       ment  of the list.  For non-empty lists, the element indicated by 4mfirst0m
       must exist.

       If 4mlast24m is less than zero but greater than 4mfirst24m,  then  any  specified
       elements  will  be  prepended  to the list.  If 4mlast24m is less than 4mfirst0m
       then no elements are deleted; the  new  elements  are  simply  inserted
       before 4mfirst24m.

       The 4melement24m arguments specify zero or more new arguments to be added to
       the list in place of those that were deleted.   Each  4melement24m  argument
       will  become  a  separate element of the list.  If no 4melement24m arguments
       are specified, then the elements between  4mfirst24m  and  4mlast24m  are  simply
       deleted.   If 4mlist24m is empty, any 4melement24m arguments are added to the end
       of the list.


1mSEE ALSO0m
       lappend(n),  lindex(n),  linsert(n),  list(n),  llength(n),  lrange(n),
       lsearch(n), lsort(n)


1mKEYWORDS0m
