History of Idiom 247 > diff from v12 to v13
Edit summary for version 13 by programming-idioms.org:
Linked to idiom #254 [Replace value in list]
Linked to idiom #254 [Replace value in list]
↷
Version 12
2021-01-06, 01:26:46
Version 13
2021-01-07, 09:33:42
Idiom #247 Filter list in-place
Remove all the elements from list x that don't satisfy the predicate p, without allocating a new list.
Keep all the elements that do satisfy p.
For languages that don't have mutable lists, refer to idiom #57 instead.
Idiom #247 Filter list in-place
Remove all the elements from list x that don't satisfy the predicate p, without allocating a new list.
Keep all the elements that do satisfy p.
For languages that don't have mutable lists, refer to idiom #57 instead.