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

Function some

packages/effect/src/internal/sink.ts:1767–1768  ·  view source on GitHub ↗
(predicate: Predicate<In>)

Source from the content-addressed store, hash-verified

1765
1766/** @internal */
1767export const some = <In>(predicate: Predicate<In>): Sink.Sink<boolean, In, In> =>
1768 fold(false, (bool) => !bool, (acc, input) => acc || predicate(input))
1769
1770/** @internal */
1771export const splitWhere = dual<

Callers 3

hashMap.tsFile · 0.70
hashSet.tsFile · 0.70
tArray.tsFile · 0.50

Calls 2

foldFunction · 0.85
predicateFunction · 0.50

Tested by

no test coverage detected