Name

lreplace

lreplace list first last [element...]

Replace elements of list having indices first through last with the given elements and return the resulting list. If no new elements are supplied, list elements are deleted.

Get Tcl/Tk in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.