removeAll method

L<T> removeAll(
  1. Iterable<T?> elements
)

Implementation

L<T> removeAll(Iterable<T?> elements) {
  var list = unlock;
  var originalLength = list.length;
  var set = HashSet.of(elements);
  list = unlock..removeWhere((e) => set.contains(e));
  if (list.length == originalLength) return this;
  return LFlat<T>.unsafe(list);
}