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

Function readonlyArray

packages/effect/src/internal/differ.ts:118–126  ·  view source on GitHub ↗
(
  differ: Differ.Differ<Value, Patch>
)

Source from the content-addressed store, hash-verified

116
117/** @internal */
118export const readonlyArray = <Value, Patch>(
119 differ: Differ.Differ<Value, Patch>
120): Differ.Differ<ReadonlyArray<Value>, Differ.Differ.ReadonlyArray.Patch<Value, Patch>> =>
121 make({
122 empty: ReadonlyArrayPatch.empty(),
123 combine: (first, second) => ReadonlyArrayPatch.combine(first, second),
124 diff: (oldValue, newValue) => ReadonlyArrayPatch.diff({ oldValue, newValue, differ }),
125 patch: (patch, oldValue) => ReadonlyArrayPatch.patch(patch, oldValue, differ)
126 })
127
128/** @internal */
129export const transform = Dual.dual<

Callers

nothing calls this directly

Calls 4

makeFunction · 0.70
combineMethod · 0.65
diffMethod · 0.65
patchMethod · 0.65

Tested by

no test coverage detected