Skip to content

Instantly share code, notes, and snippets.

View smoothdeveloper's full-sized avatar

Gauthier Segay smoothdeveloper

View GitHub Profile
@axce0712
axce0712 / ChangeTracking.fsx
Created November 10, 2023 13:14
Simple ChangeTracking Proto for F#
type Change<'Value> =
| Detached
| Unchanged of 'Value
| Modified of Original: 'Value * Current: 'Value
| Deleted of 'Value
| Added of 'Value
type ChangeTracking<'Id, 'Value when 'Id : comparison> =
private { Changes: Map<'Id, 'Value> }