Skip to main content

Replace

Replace an element of a list by another element.

Syntax

replace(List | Vector, Integer, ..., Integer, Element)

Description

Given a list or a vector, a set of integers i1,...,ini_1,...,i_n and an element xx, replace the elements in positions i1,...,ini_1, ..., i_n by the new element xx.

linear_algebra.replace.calc.png