NonEmptySortedSet

zio.prelude.NonEmptySortedSet
See theNonEmptySortedSet companion class

Attributes

Companion
class
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]
def apply[A](elem: A, others: A*)(implicit ordering: Ordering[A]): NonEmptySortedSet[A]

Constructs a NonEmptySortedSet from an Iterable or None otherwise.

Constructs a NonEmptySortedSet from an Iterable or None otherwise.

Attributes

Constructs a NonEmptyChunk from a NonEmptyList.

Constructs a NonEmptyChunk from a NonEmptyList.

Attributes

Constructs a NonEmptySortedSet from a NonEmptyList.

Constructs a NonEmptySortedSet from a NonEmptyList.

Attributes

Constructs a NonEmptySortedSet from an element and SortedSet.

Constructs a NonEmptySortedSet from an element and SortedSet.

Attributes

Constructs a NonEmptySortedSet from a SortedSet or None otherwise.

Constructs a NonEmptySortedSet from a SortedSet or None otherwise.

Attributes

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

Creates a NonEmptySortedSet containing elements from l and r

Creates a NonEmptySortedSet containing elements from l and r

Attributes

Creates a NonEmptySortedSet containing elements from l and r

Creates a NonEmptySortedSet containing elements from l and r

Attributes

Implicits

Implicits

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

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

Attributes

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

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

Attributes

The DeriveEqual instance for NonEmptySortedSet.

The DeriveEqual instance for NonEmptySortedSet.

Attributes

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

implicit def toSet[A](nonEmptySet: NonEmptySortedSet[A]): Set[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