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

Function some

packages/effect/src/Predicate.ts:1874–1883  ·  view source on GitHub ↗
(collection: Iterable<Predicate<A>>)

Source from the content-addressed store, hash-verified

1872 * @since 2.0.0
1873 */
1874export function some<A>(collection: Iterable<Predicate<A>>): Predicate<A> {
1875 return (a) => {
1876 for (const p of collection) {
1877 if (p(a)) {
1878 return true
1879 }
1880 }
1881 return false
1882 }
1883}

Callers

nothing calls this directly

Calls 1

pFunction · 0.85

Tested by

no test coverage detected