exceptValues<T> static method
Returns list with each of values removed.
Arr.exceptValues([1, 2, 3, 4], [2, 4]); // [1, 3]
Implementation
static List<T> exceptValues<T>(Iterable<T> list, Iterable<T> values) {
final exclude = values.toSet();
return [
for (final v in list)
if (!exclude.contains(v)) v,
];
}