Logo

Programming-Idioms

History of Idiom 135 > diff from v10 to v11

Edit summary for version 11 by Edward E.:
New Dart implementation by user [Edward E.]

Version 10

2017-10-28, 12:32:55

Version 11

2018-01-17, 16:52:49

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.

Code
items(remove(x);