MCPcopy Create free account
hub / github.com/effect-app/libs / of

Function of

repos/effect/packages/effect/src/Chunk.ts:336–336  ·  view source on GitHub ↗
(a: A)

Source from the content-addressed store, hash-verified

334export const of = <A>(a: A): NonEmptyChunk<A> => makeChunk({ _tag: "ISingleton", a }) as any
335
336/**
337 * Creates a new `Chunk` from an iterable collection of values.
338 *
339 * **Example** (Creating chunks from iterables)

Callers 3

fromArrayUnsafeFunction · 0.70
Chunk.tsFile · 0.70
rangeFunction · 0.70

Calls 1

makeChunkFunction · 0.85

Tested by

no test coverage detected