( differ: Differ.Differ<Value, Patch> )
| 57 | |
| 58 | /** @internal */ |
| 59 | export 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 */ |
| 70 | export const hashMap = <Key, Value, Patch>( |