MCPcopy Index your code
hub / github.com/Effect-TS/effect / nonEmptyChunkArbitrary

Function nonEmptyChunkArbitrary

packages/effect/src/Schema.ts:8332–8333  ·  view source on GitHub ↗
(item: LazyArbitrary<A>)

Source from the content-addressed store, hash-verified

8330{}
8331
8332const nonEmptyChunkArbitrary = <A>(item: LazyArbitrary<A>): LazyArbitrary<chunk_.NonEmptyChunk<A>> => (fc) =>
8333 fastCheck_.array(item(fc), { minLength: 1 }).map((as) => chunk_.unsafeFromNonEmptyArray(as as any))
8334
8335const nonEmptyChunkPretty = <A>(item: pretty_.Pretty<A>): pretty_.Pretty<chunk_.NonEmptyChunk<A>> => (c) =>
8336 `NonEmptyChunk(${chunk_.toReadonlyArray(c).map(item).join(", ")})`

Callers

nothing calls this directly

Calls 3

itemFunction · 0.85
arrayMethod · 0.80
mapMethod · 0.65

Tested by

no test coverage detected