linsert(TCL)


linsert -- insert elements into a list

Synopsis

linsert list index element [element element ...]

Description

This command produces a new list from list by inserting all of the element arguments into list, after index elements of the current list. Each element argument will become a separate element of the new list. If index is less than or equal to zero, then the new elements are inserted at the beginning of the list. If index has the value end, or if it is greater than or equal to the number of elements in the list, then the new elements are appended to the list.
02 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 02 June 2005