Copy returns an identical vector that is not shared with v.
()
| 185 | |
| 186 | // Copy returns an identical vector that is not shared with v. |
| 187 | func (v Vector) Copy() Vector { |
| 188 | nv := make([]Counter, len(v.Counters)) |
| 189 | copy(nv, v.Counters) |
| 190 | return Vector{Counters: nv} |
| 191 | } |
| 192 | |
| 193 | // Equal returns true when the two vectors are equivalent. |
| 194 | func (v Vector) Equal(b Vector) bool { |