Merge pull request #590 from jaffee/set-n-at-end

set n based on array length instead of incrementing repeatedly
This commit is contained in:
Matthew Jaffee 2017-06-01 11:03:35 -05:00 committed by GitHub
commit fa4234b04c

View file

@ -1373,10 +1373,10 @@ func intersectArrayArray(a, b *container) *container {
j++
} else {
output.array = append(output.array, va)
output.n++
i, j = i+1, j+1
}
}
output.n = len(output.array)
return output
}