()
| 48 | |
| 49 | /** @internal */ |
| 50 | export const environment = <A>(): Differ.Differ<Context<A>, Differ.Differ.Context.Patch<A, A>> => |
| 51 | make({ |
| 52 | empty: ContextPatch.empty(), |
| 53 | combine: (first, second) => ContextPatch.combine(second)(first), |
| 54 | diff: (oldValue, newValue) => ContextPatch.diff(oldValue, newValue), |
| 55 | patch: (patch, oldValue) => ContextPatch.patch(oldValue)(patch) |
| 56 | }) |
| 57 | |
| 58 | /** @internal */ |
| 59 | export const chunk = <Value, Patch>( |