diff options
| author | Nikolaus Gotsche <n@softwarefools.com> | 2019-05-14 12:32:45 +0200 |
|---|---|---|
| committer | Nikolaus Gotsche <n@softwarefools.com> | 2019-05-14 12:32:45 +0200 |
| commit | 0c4c5ac1ba534425716c80d27dc72817718f0367 (patch) | |
| tree | 109d394c83b48197abaf9a44f88238c8af7283ca /utils.go | |
| parent | bf7dfda3e67f67687109290209c8b09576a417fd (diff) | |
Payment Debug, Yearly Analysis0.4.4
Diffstat (limited to 'utils.go')
| -rw-r--r-- | utils.go | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -309,6 +309,16 @@ func isElement(some int, group []int) bool { return false } +func AddNewElement(base, news []int) (out []int) { + out = base + for _,e := range news { + if !isElement(e,base) { + out = append(out,e) + } + } + return +} + func removeItems(master, rem []int) []int { var out []int for _, v := range master { |
