I want to avoid getting this error image of error
which is INDEX out of range. Im trying to loop through an array but when I find something I want to remove , I delete it yet the .count of the array remains the same for that iteration of the for loop , how can I fix this?
here is console when run
test i:0 count: 3
test i:1 count: 3
test i:2 count: 2
yet the to: in
for i in stride(from: 0, to: count, by: 1)
still seems to be 3...
Can Someone show me how to filter this array or loop through and remove? as long as it works i dont care what it is