Hyperlinkv0.8.0-beta.28

Chunk

Chunk.NonEmptyChunkinterfaceeffect/Chunk.ts:78
NonEmptyChunk<A>

A non-empty Chunk guaranteed to contain at least one element.

Example (Working with non-empty chunks)

import { Chunk } from "effect"

const nonEmptyChunk: Chunk.NonEmptyChunk<number> = Chunk.make(1, 2, 3)
console.log(Chunk.headNonEmpty(nonEmptyChunk)) // 1
console.log(Chunk.lastNonEmpty(nonEmptyChunk)) // 3
models
Source effect/Chunk.ts:781 lines
export interface NonEmptyChunk<out A> extends Chunk<A>, NonEmptyIterable<A> {}
Referenced by 20 symbols