Build a Set instance from the provided values.
Provide a CMonoid[Set[A]] instance.
Provide a CMonoid[Set[A]] instance.
Since element order is irrelevant, union is a commutative operation. The empty set is the identity element.
Allocate an empty Set.
Provide a Eq[Set[A]] instance.
Provide a Eq[Set[A]] instance.
Since Sets are so reliant on equality, and use hash codes internally, the default equality is used to compare elements.
Build a Set from the provided array.
Build a Set from the provided array.
The advantage of using this method is that, unlike apply() or fromIterable(), the values will not be boxed prior to the set being built.
Build a Set from the provided iterable object.
Allocate an empty Set, capable of holding n items without resizing itself.
Allocate an empty Set, capable of holding n items without resizing itself.
This method is useful if you know you'll be adding a large number of elements in advance and you want to save a few resizes.