lreplace man page on BSDOS

Man page or keyword search:  
man Server   6284 pages
apropos Keyword Search (all sections)
Output format
BSDOS logo
[printable version]



lreplace(n)	      Tcl Built-In Commands	      lreplace(n)

_________________________________________________________________

NAME
       lreplace - Replace elements in a list with new elements

SYNOPSIS
       lreplace list first last ?element element ...?
_________________________________________________________________

DESCRIPTION
       Lreplace	 returns  a  new  list formed by replacing one or
       more elements of list with the element  arguments.   First
       gives  the  index  in  list  of	the  first  element to be
       replaced (0 refers to the first	element).   If	first  is
       less  than  zero	 then  it  refers to the first element of
       list;  the element indicated by first must  exist  in  the
       list.  Last gives the index in list of the last element to
       be replaced.  If last is less than first then no	 elements
       are  deleted;  the new elements are simply inserted before
       first.  First or last may be end (or any	 abbreviation  of
       it) to refer to the last element of the list.  The element
       arguments specify zero or more new arguments to	be  added
       to  the	list  in  place of those that were deleted.  Each
       element argument will become a  separate	 element  of  the
       list.   If  no  element	arguments are specified, then the
       elements between first and last are simply deleted.

KEYWORDS
       element, list, replace

Tcl			       7.4				1

[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server BSDOS

List of man pages available for BSDOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net