personalized walk

This commit is contained in:
pippellia-btc
2025-05-23 12:17:58 +02:00
parent d27252275b
commit 9b02f87b25
3 changed files with 114 additions and 1 deletions

View File

@@ -12,10 +12,12 @@ type Delta struct {
Added []ID
}
// Old returns the old state of the delta
func (d Delta) Old() []ID {
return append(d.Common, d.Removed...)
}
// New returns the new state of the delta
func (d Delta) New() []ID {
return append(d.Common, d.Added...)
}