Describe the bug
The documentation states "To remove all the indexes contained in another container, use container[] >>- indices; (classic form: remove key: indices all: true from: container;)". However, this removes from container the first occurrences of the elements in indices, rather than removing elements from container at the indices contained in indices.
To Reproduce
Steps to reproduce the behavior:
Go to Library models > GAML Syntax > Data Types And Structures > Lists
Click on Experiment Lists > modifying_lists
Scroll down to After l1[] >>- [1,2,4]
See error
Expected behavior
elements of indices 1, 2, 4 are expected to be removed from l1, rather first occurrences of "1", "2" and "4" are removed from l1.
Desktop (please complete the following information):
Describe the bug The documentation states "To remove all the indexes contained in another container, use
container[] >>- indices;
(classic form:remove key: indices all: true from: container;
)". However, this removes fromcontainer
the first occurrences of the elements inindices
, rather than removing elements fromcontainer
at the indices contained inindices
.To Reproduce Steps to reproduce the behavior:
After l1[] >>- [1,2,4]
Expected behavior elements of indices 1, 2, 4 are expected to be removed from l1, rather first occurrences of "1", "2" and "4" are removed from l1.
Desktop (please complete the following information):