M42.Collections by Daniel Pelsmaeker

<PackageReference Include="M42.Collections" Version="0.6.5056.5071" />

 IMutableSet<T>

A mutable set of unique elements.
bool AddOrUpdate(T value)

Adds the specified value to the set, overwriting an existing equal value if present.

void ExceptWith(IEnumerable<T> other)

Removes all elements in the specified enumerable collection from this set.

void IntersectWith(IEnumerable<T> other)

Keeps only elements common to the specified enumerable collection and this set in this set.

Removes any elements common to the specified enumerable collection and this set from this set, and adds any other elements from the specified enumerable collection to this set.

void UnionWith(IEnumerable<T> other)

Keeps all elements in the specified enumerable collection and this set in this set.

bool Update(T value)

Updates the element that is equal to the specified value with the specified value.