This commit is contained in:
Bel LaPointe
2023-10-26 07:43:44 -06:00
parent 78297a56a6
commit e1b601a130
3 changed files with 14 additions and 4 deletions

View File

@@ -7,6 +7,14 @@ import (
type Register map[string]Balances
func (register Register) WithBPIs(bpis BPIs) Register {
result := make(Register)
for d := range register {
result[d] = register[d].WithBPIsAt(bpis, d)
}
return result
}
func (register Register) PushAll(other Register) {
for date := range other {
if _, ok := register[date]; !ok {