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

Function every

packages/effect/src/Sink.ts:856–861  ·  view source on GitHub ↗
(predicate: Predicate<In>)

Source from the content-addressed store, hash-verified

854 * @since 2.0.0
855 */
856export const every = <In>(predicate: Predicate<In>): Sink<boolean, In, In> =>
857 fold(
858 constTrue,
859 identity,
860 (_, a) => Effect.succeed(predicate(a))
861 )
862
863/**
864 * A sink that returns whether an element satisfies the specified predicate.

Callers

nothing calls this directly

Calls 3

foldFunction · 0.85
predicateFunction · 0.85
succeedMethod · 0.45

Tested by

no test coverage detected