FicSetExtension<T> extension

See also: FicListExtension

on

Properties

lock ISet<T>
Locks the set, returning an immutable set (ISet).
no setter
lockUnsafe ISet<T>
Locks the set, returning an immutable set (ISet).
no setter

Methods

diffAndIntersect<G>(Set<G> other, {bool diffThisMinusOther = true, bool diffOtherMinusThis = true, bool intersectThisWithOther = true, bool intersectOtherWithThis = true}) DiffAndIntersectResult<T, G>
Given this set and other, returns:
removeNulls() → void
Removes all nulls from the Set.
toggle(T item) bool
If the item doesn't exist in the set, add it and return true. Otherwise, if the item already exists in the set, remove it and return false.