object NonEmptySet
- Alphabetic
- By Inheritance
- NonEmptySet
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- implicit val NonEmptySetCommutativeEither: CommutativeEither[NonEmptySet]
The
CommutativeEither
instance forNonEmptySet
. - implicit def NonEmptySetCommutativeIdempotent[A]: Commutative[NonEmptySet[A]] with Idempotent[NonEmptySet[A]]
The
Commutative
andIdempotent
(and thusAssociative
) instance forNonEmptySet
. - implicit def NonEmptySetDebug[A](implicit arg0: Debug[A]): Debug[NonEmptySet[A]]
Derives a
Debug[NonEmptySet[A]]
given aDebug[A]
. - implicit val NonEmptySetDeriveEqual: DeriveEqual[NonEmptySet]
The
DeriveEqual
instance forNonEmptySet
. - implicit def NonEmptySetHashPartialOrd[A]: Hash[NonEmptySet[A]] with PartialOrd[NonEmptySet[A]]
Derives a
Hash[NonEmptySet[A]]
andPartialOrd[NonEmptySet[A]]
(and thusEqual[NonEmptyList[A]]
) instance. - implicit val NonEmptySetInvariant: Invariant[NonEmptySet]
The
Invariant
instance forNonEmptySet
. - def apply[A](elem: A, others: A*): NonEmptySet[A]
Creates a
NonEmptySet
with the specified elements.Creates a
NonEmptySet
with the specified elements.- A
the type of the
NonEmptySet
's elements- elem
an element of the created
NonEmptySet
- others
the remaining elements of the created
NonEmptySet
- returns
a new
NonEmptySet
with elementselem
andothers
- def fromIterable[A](head: A, tail: Iterable[A]): NonEmptySet[A]
Constructs a
NonEmptySet
from an element andIterable
. - def fromIterableOption[A](iterable: Iterable[A]): Option[NonEmptySet[A]]
Constructs a
NonEmptySet
from anIterable
orNone
otherwise. - def fromNonEmptyChunk[A](elems: NonEmptyChunk[A]): NonEmptySet[A]
Constructs a
NonEmptyChunk
from aNonEmptyList
. - def fromNonEmptyList[A](elems: NonEmptyList[A]): NonEmptySet[A]
Constructs a
NonEmptySet
from aNonEmptyList
. - def fromSet[A](elem: A, others: Set[A]): NonEmptySet[A]
Constructs a
NonEmptySet
from an element andSet
. - def fromSetOption[A](set: Set[A]): Option[NonEmptySet[A]]
Constructs a
NonEmptySet
from aSet
orNone
otherwise. - def single[A](head: A): NonEmptySet[A]
Constructs a
NonEmptySet
with the specified single value. - implicit def toSet[A](nonEmptySet: NonEmptySet[A]): Set[A]
Provides an implicit conversion from
NonEmptySet
to theSet
for interoperability with Scala's collection library. - def unapply[A](arg: NonEmptySet[A]): Some[(A, Set[A])]
- def union[A](l: Set[A], r: NonEmptySet[A]): NonEmptySet[A]
Creates a
NonEmptySet
containing elements froml
andr
- def union[A](l: NonEmptySet[A], r: Set[A]): NonEmptySet[A]
Creates a
NonEmptySet
containing elements froml
andr