RemoveSame
| Stack | Position | Description |
|---|---|---|
| Stack(In) | top | vector x |
| top-1 | element a to be deleted | |
| Stack(Out) | top | - |
Removes the element a from vector x, no matter what position a has in the original vector. Element a is removed once - when appearing in the vector for the first time. If this vector doesn't include a, it remains unchanged.
To remove a primitive object from a vector, it is sufficient, if an equal object is included in the vector. Remove requires the actual object to be in the vector.
This operation does not generate a new vector like the operand - and is therefore more efficient.
1€ [ 1€ 2€ ] Remove => [ 2€ ] // 1€ equals 1€, but is not identical