differenceWith method

Set<E> differenceWith(
  1. Set<E> other
)

Returns a new set with the elements of other removed from this set.

Example:

{1, 2, 3}.differenceWith({2, 3}); // {1}

Implementation

Set<E> differenceWith(Set<E> other) => difference(other);