MCPcopy Create free account
hub / github.com/Effect-TS/effect / isNonEmpty

Function isNonEmpty

packages/effect/src/TxChunk.ts:538–539  ·  view source on GitHub ↗
(self: TxChunk<A>)

Source from the content-addressed store, hash-verified

536 * @since 4.0.0
537 */
538export const isNonEmpty = <A>(self: TxChunk<A>): Effect.Effect<boolean> =>
539 modify(self, (current) => [Chunk.isNonEmpty(current), current])
540
541/**
542 * Takes the first `n` elements from the `TxChunk`.

Callers

nothing calls this directly

Calls 1

modifyFunction · 0.50

Tested by

no test coverage detected