s never created as a new variable on every iteration, but its value is mutated inside the for loop
So I changed the iteration like this:
Better One
1
2
3
fori:=rangeslice{r[i]=&slice[i]}
Thank you for reading!
···
Love This Content?
Any kind of supports is greatly appreciated! Kindly support me via Bitcoin, Ko-fi, Trakteer, or just continue to read another content. You can write a response via Webmention and let me know the URL via Telegraph.