MCPcopy
hub / github.com/Effect-TS/effect / predicate

Function predicate

packages/effect/test/Option.test.ts:394–394  ·  view source on GitHub ↗
(a: number)

Source from the content-addressed store, hash-verified

392
393 it("exists", () => {
394 const predicate = (a: number) => a === 2
395 assertFalse(pipe(Option.none(), Option.exists(predicate)))
396 assertFalse(pipe(Option.some(1), Option.exists(predicate)))
397 assertTrue(pipe(Option.some(2), Option.exists(predicate)))

Callers 15

Predicate.test.tsFile · 0.70
constructorMethod · 0.50
Predicate.test.tsFile · 0.50
traverseFilterFunction · 0.50
traversePartitionFunction · 0.50
filterFunction · 0.50
partitionFunction · 0.50
Micro.tsFile · 0.50
findNodeFunction · 0.50
findNodesFunction · 0.50
findEdgeFunction · 0.50
findEdgesFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected