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

Function containsWith

packages/effect/src/Option.ts:1854–1857  ·  view source on GitHub ↗
(isEquivalent: (self: A, that: A) => boolean)

Source from the content-addressed store, hash-verified

1852 * @since 2.0.0
1853 */
1854export const containsWith = <A>(isEquivalent: (self: A, that: A) => boolean): {
1855 (a: A): (self: Option<A>) => boolean
1856 (self: Option<A>, a: A): boolean
1857} => dual(2, (self: Option<A>, a: A): boolean => isNone(self) ? false : isEquivalent(self.value, a))
1858
1859const _equivalence = Equal.equivalence()
1860

Callers 1

Option.tsFile · 0.70

Calls 1

isNoneFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…