Closed skaman closed 2 weeks ago
When you try to make this array unique []int{1, 2, 4, 4, 5} you get []int{1, 4, 5} instead of []int{1, 2, 4, 5}. Our index i should be increased even with both indices i and j have the same value
[]int{1, 2, 4, 4, 5}
[]int{1, 4, 5}
[]int{1, 2, 4, 5}
i
j
This PR is related to the issue: https://github.com/odin-lang/Odin/issues/3769
When you try to make this array unique
[]int{1, 2, 4, 4, 5}
you get[]int{1, 4, 5}
instead of[]int{1, 2, 4, 5}
. Our indexi
should be increased even with both indicesi
andj
have the same valueThis PR is related to the issue: https://github.com/odin-lang/Odin/issues/3769