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

Function first

packages/effect/test/Predicate.test.ts:72–75  ·  view source on GitHub ↗
(_: number)

Source from the content-addressed store, hash-verified

70 it("stops checking after the first failing predicate", () => {
71 let calls = 0
72 const first = (_: number) => {
73 calls += 1
74 return false
75 }
76 const second = (_: number) => {
77 calls += 1
78 return true

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected