elliotchance/pie

Diff: unexpected behaviour

andriyor opened this issue · 3 comments

firstSlice := pie.Ints{1, 2, 3, 3, 4, 4}
secondSlice := pie.Ints{3, 4, 5, 4, 6}
fmt.Println(firstSlice.Diff(secondSlice))

panic: runtime error: slice bounds out of range [5:4]

@andriyor happy to accept a PR if you have a fix 😄

@elliotchance I raised the PR, waiting for a review.