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

Function chunk

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

Source from the content-addressed store, hash-verified

57
58/** @internal */
59export const chunk = <Value, Patch>(
60 differ: Differ.Differ<Value, Patch>
61): Differ.Differ<Chunk<Value>, Differ.Differ.Chunk.Patch<Value, Patch>> =>
62 make({
63 empty: ChunkPatch.empty(),
64 combine: (first, second) => ChunkPatch.combine(second)(first),
65 diff: (oldValue, newValue) => ChunkPatch.diff({ oldValue, newValue, differ }),
66 patch: (patch, oldValue) => ChunkPatch.patch(oldValue, differ)(patch)
67 })
68
69/** @internal */
70export const hashMap = <Key, Value, Patch>(

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

Used in the wild real call sites across dependent graphs

searching dependent graphs…