← ZIO Prelude docs

NonEmptySortedSet

zio.prelude.NonEmptySortedSet
See theNonEmptySortedSet companion class

Attributes

Companion
class
Source
NonEmptySortedSet.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply[A](elem: A, others: Iterable[A])(implicit ordering: Ordering[A]): NonEmptySortedSet[A]

Attributes

Source
NonEmptySortedSet.scala
def apply[A](elem: A, others: A*)(implicit ordering: Ordering[A]): NonEmptySortedSet[A]

Attributes

Source
NonEmptySortedSet.scala
def fromIterableOption[A](iterable: Iterable[A])(implicit ordering: Ordering[A]): Option[NonEmptySortedSet[A]]

Constructs a NonEmptySortedSet from an Iterable or None otherwise.

Constructs a NonEmptySortedSet from an Iterable or None otherwise.

Attributes

Source
NonEmptySortedSet.scala
def fromNonEmptyChunk[A](elems: NonEmptyChunk[A])(implicit ordering: Ordering[A]): NonEmptySortedSet[A]

Constructs a NonEmptyChunk from a NonEmptyList.

Constructs a NonEmptyChunk from a NonEmptyList.

Attributes

Source
NonEmptySortedSet.scala
def fromNonEmptyList[A](elems: NonEmptyList[A])(implicit ordering: Ordering[A]): NonEmptySortedSet[A]

Constructs a NonEmptySortedSet from a NonEmptyList.

Constructs a NonEmptySortedSet from a NonEmptyList.

Attributes

Source
NonEmptySortedSet.scala
def fromSet[A](elem: A, others: SortedSet[A])(implicit ordering: Ordering[A]): NonEmptySortedSet[A]

Constructs a NonEmptySortedSet from an element and SortedSet.

Constructs a NonEmptySortedSet from an element and SortedSet.

Attributes

Source
NonEmptySortedSet.scala
def fromSetOption[A](set: SortedSet[A])(implicit ordering: Ordering[A]): Option[NonEmptySortedSet[A]]

Constructs a NonEmptySortedSet from a SortedSet or None otherwise.

Constructs a NonEmptySortedSet from a SortedSet or None otherwise.

Attributes

Source
NonEmptySortedSet.scala
def single[A](head: A)(implicit ordering: Ordering[A]): NonEmptySortedSet[A]

Constructs a NonEmptySortedSet with the specified single value.

Constructs a NonEmptySortedSet with the specified single value.

Attributes

Source
NonEmptySortedSet.scala
def unapply[A](arg: NonEmptySortedSet[A]): Some[(A, SortedSet[A])]

Attributes

Source
NonEmptySortedSet.scala
def union[A](l: NonEmptySortedSet[A], r: SortedSet[A])(implicit ordering: Ordering[A]): NonEmptySortedSet[A]

Creates a NonEmptySortedSet containing elements from l and r

Creates a NonEmptySortedSet containing elements from l and r

Attributes

Source
NonEmptySortedSet.scala
def union[A](l: SortedSet[A], r: NonEmptySortedSet[A])(implicit ordering: Ordering[A]): NonEmptySortedSet[A]

Creates a NonEmptySortedSet containing elements from l and r

Creates a NonEmptySortedSet containing elements from l and r

Attributes

Source
NonEmptySortedSet.scala

Implicits

Implicits

The Commutative and Idempotent (and thus Associative) instance for NonEmptySortedSet.

The Commutative and Idempotent (and thus Associative) instance for NonEmptySortedSet.

Attributes

Source
NonEmptySortedSet.scala

Derives a Debug[NonEmptySortedSet[A]] given a Debug[A].

Derives a Debug[NonEmptySortedSet[A]] given a Debug[A].

Attributes

Source
NonEmptySortedSet.scala

The DeriveEqual instance for NonEmptySortedSet.

The DeriveEqual instance for NonEmptySortedSet.

Attributes

Source
NonEmptySortedSet.scala

Derives a Hash[NonEmptySortedSet[A]] and PartialOrd[NonEmptySortedSet[A]] (and thus Equal[NonEmptyList[A]]) instance.

Derives a Hash[NonEmptySortedSet[A]] and PartialOrd[NonEmptySortedSet[A]] (and thus Equal[NonEmptyList[A]]) instance.

Attributes

Source
NonEmptySortedSet.scala
implicit def toSet[A](nonEmptySet: NonEmptySortedSet[A]): SortedSet[A]

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

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

Attributes

Source
NonEmptySortedSet.scala