Logo

Programming-Idioms

History of Idiom 247 > diff from v1 to v2

Edit summary for version 2 by programming-idioms.org:
Linked to idiom #57 [Filter list]

Version 1

2020-12-09, 11:53:14

Version 2

2020-12-09, 11:53:41

Idiom #247 Filter list in-place

Remove all the items from list x that don't satisfy the predicate p, without allocating a new list.

For languages that don't have mutable lists, refer to idiom #57 instead.

Idiom #247 Filter list in-place

Remove all the items from list x that don't satisfy the predicate p, without allocating a new list.

For languages that don't have mutable lists, refer to idiom #57 instead.

Extra Keywords
keep conserve preserve mutable
Extra Keywords
keep conserve preserve mutable