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

Function some

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

Source from the content-addressed store, hash-verified

874 * @since 2.0.0
875 */
876export const some = <In>(predicate: Predicate<In>): Sink<boolean, In, In> =>
877 fold(
878 constFalse,
879 (b) => !b,
880 (_, a) => Effect.succeed(predicate(a))
881 )
882
883/**
884 * Transforms this sink's result.

Callers 13

fromIterableFunction · 0.70
Option.tsFile · 0.70
fromNullishOrFunction · 0.70
fromUndefinedOrFunction · 0.70
fromNullOrFunction · 0.70
liftThrowableFunction · 0.70
productFunction · 0.70
productManyFunction · 0.70
allFunction · 0.70
genFunction · 0.70
makeReducerFunction · 0.70
makeCombinerFailFastFunction · 0.70

Calls 3

foldFunction · 0.85
predicateFunction · 0.85
succeedMethod · 0.45

Tested by

no test coverage detected