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

Function getEquivalence

packages/effect/src/Record.ts:1214–1219  ·  view source on GitHub ↗
(
  equivalence: Equivalence<A>
)

Source from the content-addressed store, hash-verified

1212 * @since 2.0.0
1213 */
1214export const getEquivalence = <K extends string, A>(
1215 equivalence: Equivalence<A>
1216): Equivalence<ReadonlyRecord<K, A>> => {
1217 const is = isSubrecordBy(equivalence)
1218 return (self, that) => is(self, that) && is(that, self)
1219}
1220
1221/**
1222 * Create a non-empty record from a single element.

Callers

nothing calls this directly

Calls 2

isSubrecordByFunction · 0.85
isFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…