object ZSet extends LowPriorityZSetImplicits
- Alphabetic
- By Inheritance
- ZSet
- LowPriorityZSetImplicits
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- implicit lazy val MultiSetForEach: ForEach[MultiSet]
The
ForEach
instance forMultiSet
. - implicit def ZSetCommutative[A, B](implicit ev: Commutative[B]): Commutative[ZSet[A, B]] with Identity[ZSet[A, B]]
Derives a
Commutative[ZSet[A, B]]
given aCommutative[B]
. - implicit def ZSetCovariant[B](implicit ev: Commutative[Sum[B]]): Covariant[[+x]ZSet[x, B]]
The
Covariant
instance forZSet
. - implicit def ZSetDebug[A, B](implicit arg0: Debug[A], arg1: Debug[B]): Debug[ZSet[A, B]]
Derives a
Debug[ZSet[A, B]]
given aDebug[A]
andDebug[B]
. - implicit def ZSetDeriveEqual[B](implicit arg0: Equal[B], ev: Identity[Sum[B]]): DeriveEqual[[+x]ZSet[x, B]]
The
EqualF
instance forZSet
. - implicit def ZSetEqual[A, B](implicit ev1: Equal[B], ev: Identity[Sum[B]]): Equal[ZSet[A, B]]
Derives an
Equal[ZSet[A, B]]
given anEqual[B]
.Derives an
Equal[ZSet[A, B]]
given anEqual[B]
. Due to the limitations of Scala'sMap
, this uses object equality on the keys. - implicit def ZSetHash[A, B](implicit arg0: Hash[B], ev: Identity[Sum[B]]): Hash[ZSet[A, B]]
Derives a
Hash[ZSet[A, B]]
given aHash[B]
.Derives a
Hash[ZSet[A, B]]
given aHash[B]
. Due to the limitations of Scala'sMap
, this uses object equality on the keys. - implicit def ZSetIdempotent[A, B](implicit ev: Idempotent[B]): Idempotent[ZSet[A, B]] with Identity[ZSet[A, B]]
Derives a
Idempotent[ZSet[A, B]]
given aIdempotent[B]
. - implicit def ZSetIdentity[A, B](implicit ev: Associative[B]): Identity[ZSet[A, B]]
Derives a
Identity[ZSet[A, B]]
given aIdentity[B]
. - implicit def ZSetIdentityFlatten[B](implicit ev1: Commutative[Sum[B]], ev2: Commutative[Prod[B]]): IdentityFlatten[[+x]ZSet[x, B]]
The
IdentityFlatten
instance forZSet
. - implicit def ZSetPartialOrd[A, B](implicit arg0: PartialOrd[B], ev: Identity[Sum[B]]): PartialOrd[ZSet[A, B]]
Derives a
PartialOrd[ZSet[A, B]]
given aPartialOrd[B]
.Derives a
PartialOrd[ZSet[A, B]]
given aPartialOrd[B]
. Due to the limitations of Scala'sMap
, this uses object equality on the keys.- Definition Classes
- LowPriorityZSetImplicits
- def apply[A](as: A*): ZSet[A, Int]
Constructs a set with the specified elements.
- val empty: ZSet[Nothing, Nothing]
The empty set.
- def fromIterable[A](iterable: Iterable[A]): MultiSet[A]
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 specifiedIterable
. - def fromMap[A, B](map: Map[A, B]): ZSet[A, B]
Constructs a set from the specified
Map
.Constructs a set from the specified
Map
. The values will be the keys in theMap
and the measure of how many times a value occurs will be the keys value. - def fromSet[A](set: Set[A]): ZSet[A, Boolean]
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.