Derives a Associative[ZNonEmptySet[A, B]]
given a Associative[B]
.
Derives a Commutative[ZNonEmptySet[A, B]]
given a Commutative[B]
.
The Covariant
instance for ZNonEmptySet
.
Derives a Debug[ZNonEmptySet[A, B]]
given a Debug[A]
and Debug[B]
.
The EqualF
instance for ZNonEmptySet
.
Derives an Equal[ZNonEmptySet[A, B]]
given an Equal[B]
.
Derives an Equal[ZNonEmptySet[A, B]]
given an Equal[B]
. Due to the
limitations of Scala's Map
, this uses object equality on the keys.
The IdentityFlatten
instance for ZNonEmptySet
.
Derives a Hash[ZNonEmptySet[A, B]]
given a Hash[B]
.
Derives a Hash[ZNonEmptySet[A, B]]
given a Hash[B]
. Due to the
limitations of Scala's Map
, this uses object equality on the keys.
Derives a Idempotent[ZNonEmptySet[A, B]]
given a Idempotent[B]
.
Derives a PartialOrd[ZNonEmptySet[A, B]]
given a PartialOrd[B]
.
Derives a PartialOrd[ZNonEmptySet[A, B]]
given a PartialOrd[B]
.
Due to the limitations of Scala's Map
, this uses object equality on the keys.
Constructs a set with the specified elements.
Constructs a set from the specified Iterable
.
Constructs a set from the specified Iterable
. The measure of how many
times a value occurs in the set will be an integer representing how many
times the value occurred in the specified Iterable
.
Constructs a set from the specified Iterable
.
Constructs a set from the specified Iterable
. The measure of how many
times a value occurs in the set will be an integer representing how many
times the value occurred in the specified Iterable
. Returns None
if empty.
Constructs a set from the specified Map
.
Constructs a set from the specified Map
. The values will be the keys in
the Map
and the measure of how many times a value occurs will be the
keys value. Returns None
if empty.
Constructs a set from the specified Set
.
Constructs a set from the specified Set
. The measure of how many times
a value occurs in the set will be a boolean representing whether a value
occurs at all.
Constructs a NonEmptyMultiSet
, where, by definition, each element is present exactly once.
Constructs a NonEmptyMultiSet
, where, by definition, each element is present exactly once.
Returns None
if empty.
Provides an implicit conversion from NonEmptySet
to the Set
for interoperability with Scala's collection library.