remove
Removes one or more elements from a linear container.
Syntax
-
remove(X, R)-
Xis any linear container -
Ris a range
-
Description
If X is a linear container and R a range specification (see part and range), then remove(X, R) returns X with the elements specified by R removed.
Examples
remove(SequenceVector(10), 5)
(1, 2, 3, 4, 6, 7, 8, 9, 10)
remove(SequenceVector(10), range(5, −1, 2))
⎛1 ⎞ ⎜2 ⎟ ⎜3 ⎟ e⎜4 ⎟ ⎜6 ⎟ ⎜8 ⎟ ⎝10⎠