NonEmptyChunk

zio.blocks.chunk.NonEmptyChunk
See theNonEmptyChunk companion class
object NonEmptyChunk

Attributes

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

Members list

Value members

Concrete methods

def apply[A](a: A, as: A*): NonEmptyChunk[A]

Constructs a NonEmptyChunk from one or more values.

Constructs a NonEmptyChunk from one or more values.

Attributes

Source
Chunk.scala
def fromChunk[A](chunk: Chunk[A]): Option[NonEmptyChunk[A]]

Checks if a chunk is not empty and constructs a NonEmptyChunk from it.

Checks if a chunk is not empty and constructs a NonEmptyChunk from it.

Attributes

Source
Chunk.scala
def fromCons[A](as: ::[A]): NonEmptyChunk[A]

Constructs a NonEmptyChunk from the :: case of a List.

Constructs a NonEmptyChunk from the :: case of a List.

Attributes

Source
Chunk.scala
def fromIterable[A](a: A, as: Iterable[A]): NonEmptyChunk[A]

Constructs a NonEmptyChunk from an Iterable.

Constructs a NonEmptyChunk from an Iterable.

Attributes

Source
Chunk.scala
def fromIterableOption[A](as: Iterable[A]): Option[NonEmptyChunk[A]]

Constructs a NonEmptyChunk from an Iterable or None otherwise.

Constructs a NonEmptyChunk from an Iterable or None otherwise.

Attributes

Source
Chunk.scala
def single[A](a: A): NonEmptyChunk[A]

Constructs a NonEmptyChunk from a single value.

Constructs a NonEmptyChunk from a single value.

Attributes

Source
Chunk.scala
def unapplySeq[A](seq: Seq[A]): Option[Seq[A]]

Extracts the elements from a Chunk.

Extracts the elements from a Chunk.

Attributes

Source
Chunk.scala
def unapplySeq[A](nonEmptyChunk: NonEmptyChunk[A]): Some[Seq[A]]

Extracts the elements from a NonEmptyChunk.

Extracts the elements from a NonEmptyChunk.

Attributes

Source
Chunk.scala

Concrete fields

val unit: NonEmptyChunk[Unit]

The unit non-empty chunk.

The unit non-empty chunk.

Attributes

Source
Chunk.scala

Implicits

Implicits

implicit def toChunk[A](nonEmptyChunk: NonEmptyChunk[A]): Chunk[A]

Provides an implicit conversion from NonEmptyChunk to Chunk for methods that may not return a NonEmptyChunk.

Provides an implicit conversion from NonEmptyChunk to Chunk for methods that may not return a NonEmptyChunk.

Attributes

Source
Chunk.scala