ZNonEmptySet

zio.prelude.ZNonEmptySet
See theZNonEmptySet companion class

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply[A](a: A, as: A*): NonEmptyMultiSet[A]

Constructs a set with the specified elements.

Constructs a set with the specified elements.

Attributes

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. 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.

Attributes

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 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.

Attributes

def fromMapOption[A, B](map: Map[A, B]): Option[ZNonEmptySet[A, B]]

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 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.

Attributes

Constructs a set from the specified NonEmptyChunk. 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 NonEmptyChunk. 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.

Attributes

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 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.

Attributes

Constructs a NonEmptyMultiSet, where, by definition, each element is present exactly once. Returns None if empty.

Constructs a NonEmptyMultiSet, where, by definition, each element is present exactly once. Returns None if empty.

Attributes

Implicits

Implicits

implicit def ZNonEmptySetAssociative[A, B](implicit ev: Associative[B]): Associative[ZNonEmptySet[A, B]]

Derives a Associative[ZNonEmptySet[A, B]] given a Associative[B].

Derives a Associative[ZNonEmptySet[A, B]] given a Associative[B].

Attributes

implicit def ZNonEmptySetCommutative[A, B](implicit ev: Commutative[B]): Commutative[ZNonEmptySet[A, B]]

Derives a Commutative[ZNonEmptySet[A, B]] given a Commutative[B].

Derives a Commutative[ZNonEmptySet[A, B]] given a Commutative[B].

Attributes

implicit def ZNonEmptySetCovariant[B](implicit ev: Commutative[subtypeF.Type[B]]): Covariant[{ type lambda = ZNonEmptySet; }#<none>]

The Covariant instance for ZNonEmptySet.

The Covariant instance for ZNonEmptySet.

Attributes

implicit def ZNonEmptySetDebug[A : Debug, B : Debug]: Debug[ZNonEmptySet[A, B]]

Derives a Debug[ZNonEmptySet[A, B]] given a Debug[A] and Debug[B].

Derives a Debug[ZNonEmptySet[A, B]] given a Debug[A] and Debug[B].

Attributes

implicit def ZNonEmptySetDeriveEqual[B : Equal](implicit evidence$1: Equal[B], ev: Identity[subtypeF.Type[B]]): DeriveEqual[{ type lambda = ZNonEmptySet; }#<none>]

The EqualF instance for ZNonEmptySet.

The EqualF instance for ZNonEmptySet.

Attributes

implicit def ZNonEmptySetEqual[A, B : Equal](implicit evidence$1: Equal[B], ev: Identity[subtypeF.Type[B]]): Equal[ZNonEmptySet[A, 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.

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.

Attributes

implicit def ZNonEmptySetFlatten[B](implicit ev1: Commutative[subtypeF.Type[B]], ev2: Commutative[subtypeF.Type[B]]): AssociativeFlatten[{ type lambda = ZNonEmptySet; }#<none>]

The IdentityFlatten instance for ZNonEmptySet.

The IdentityFlatten instance for ZNonEmptySet.

Attributes

implicit def ZNonEmptySetHash[A, B : Hash](implicit evidence$1: Hash[B], ev: Identity[subtypeF.Type[B]]): Hash[ZNonEmptySet[A, 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 Hash[ZNonEmptySet[A, B]] given a Hash[B]. Due to the limitations of Scala's Map, this uses object equality on the keys.

Attributes

implicit def ZNonEmptySetIdempotent[A, B](implicit ev: Idempotent[B]): Idempotent[ZNonEmptySet[A, B]]

Derives a Idempotent[ZNonEmptySet[A, B]] given a Idempotent[B].

Derives a Idempotent[ZNonEmptySet[A, B]] given a Idempotent[B].

Attributes

implicit def toZSet[A, B](zNonEmptySet: ZNonEmptySet[A, B]): ZSet[A, B]

Provides an implicit conversion from NonEmptySet to the Set for interoperability with Scala's collection library.

Provides an implicit conversion from NonEmptySet to the Set for interoperability with Scala's collection library.

Attributes

Inherited implicits

implicit def ZNonEmptySetPartialOrd[A, B : PartialOrd](implicit evidence$1: PartialOrd[B], ev: Identity[subtypeF.Type[B]]): PartialOrd[ZNonEmptySet[A, 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.

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.

Attributes

Inherited from:
LowPriorityZNonEmptySetImplicits