Logo

Programming-Idioms

History of Idiom 135 > diff from v1 to v2

Edit summary for version 2 by programming-idioms.org:
Linked to idiom #29 [Remove item from list, by its index]

Version 1

2016-06-05, 15:22:45

Version 2

2016-06-05, 15:23:23

Idiom #135 Remove item from list, by its value

Remove at most 1 item from list items, having value x.
This will alter the original list or return a new list, depending on which is more idiomatic. If there are several occurrences of x in items, remove only one of them.

Idiom #135 Remove item from list, by its value

Remove at most 1 item from list items, having value x.
This will alter the original list or return a new list, depending on which is more idiomatic. If there are several occurrences of x in items, remove only one of them.