History of Idiom 247 > diff from v13 to v14
Edit summary for version 14 by programming-idioms.org:
[Ruby] +DocURL
[Ruby] +DocURL
↷
Version 13
2021-01-07, 09:33:42
Version 14
2021-01-07, 09:49:09
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.