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

Function emptyString

packages/typeclass/test/Contravariant.test.ts:15–15  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

13 PredicateInstances.Contravariant
14 )
15 const emptyString: P.Predicate<P.Predicate<string>> = (p) => p("") === true
16 const a = map(emptyString, (s) => s.length)
17 U.deepStrictEqual(a(S.isString), false)
18 U.deepStrictEqual(a((n) => n === 0), true)

Callers

nothing calls this directly

Calls 1

pFunction · 0.50

Tested by

no test coverage detected