← ZIO Prelude docs

ZNonEmptySetNonEmptyMultiSetOps

zio.prelude.ZNonEmptySetSyntax.ZNonEmptySetNonEmptyMultiSetOps
final implicit class ZNonEmptySetNonEmptyMultiSetOps[+A](self: NonEmptyMultiSet[A])

Attributes

Source
ZNonEmptySet.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def head: A

Returns an element

Returns an element

Attributes

Source
ZNonEmptySet.scala
def peel: (A, MultiSet[A])

Returns an element of this NonEmptyMultiSet and the remainder, which is a (possibly empty) MultiSet.

Returns an element of this NonEmptyMultiSet and the remainder, which is a (possibly empty) MultiSet.

Attributes

Source
ZNonEmptySet.scala

Returns an element of this NonEmptyMultiSet and the remainder or None, if the remainder is empty.

Returns an element of this NonEmptyMultiSet and the remainder or None, if the remainder is empty.

Attributes

Source
ZNonEmptySet.scala
def tail: MultiSet[A]

Returns the tail of this NonEmptyMultiSet as a (possibly empty) MultiSet.

Returns the tail of this NonEmptyMultiSet as a (possibly empty) MultiSet.

Attributes

Source
ZNonEmptySet.scala

Returns the tail of this NonEmptyMultiSet if it exists or None otherwise.

Returns the tail of this NonEmptyMultiSet if it exists or None otherwise.

Attributes

Source
ZNonEmptySet.scala