ZSetMultiSetOps

zio.prelude.ZSetSyntax.ZSetMultiSetOps
final implicit class ZSetMultiSetOps[+A](self: MultiSet[A])

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def head: Option[A]

Returns an element or None if empty

Returns an element or None if empty

Attributes

def peel: Option[(A, MultiSet[A])]

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

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

Attributes

def tail: Option[MultiSet[A]]

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

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

Attributes