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

Function every

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

Source from the content-addressed store, hash-verified

894 * @since 2.0.0
895 */
896export const every = <In>(predicate: Predicate<In>): Sink<boolean, In, In> =>
897 fold(
898 constTrue,
899 identity,
900 (_, a) => Effect.succeed(predicate(a))
901 )
902
903/**
904 * A sink that returns whether an element satisfies the specified predicate.

Callers

nothing calls this directly

Calls 3

predicateFunction · 0.85
foldFunction · 0.70
succeedMethod · 0.45

Tested by

no test coverage detected