NonEmptyChunk

Companion:
class
class Object
trait Matchable
class Any

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.

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.

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.

def fromIterable[A](a: A, as: Iterable[A]): NonEmptyChunk[A]

Constructs a NonEmptyChunk from an Iterable.

Constructs a NonEmptyChunk from an Iterable.

Constructs a NonEmptyChunk from an Iterable or None otherwise.

Constructs a NonEmptyChunk from an Iterable or None otherwise.

def single[A](a: A): NonEmptyChunk[A]

Constructs a NonEmptyChunk from a single value.

Constructs a NonEmptyChunk from a single value.

def unapplySeq[A](seq: Seq[A]): Option[Seq[A]]

Extracts the elements from a NonEmptyChunk.

Extracts the elements from a NonEmptyChunk.

Concrete fields

The unit non-empty chunk.

The unit non-empty chunk.

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.