3 ms·
That's fine as long as you don't mind if the underlying array is modified. As the parent points out, a slice is a view into an array and there could be other vi
by hundt 7y ago
That's fine as long as you don't mind if the underlying array is modified. As the parent points out, a slice is a view into an array and there could be other views into the same array.
https://play.golang.org/p/goL1JtapY7q https://play.golang.org/p/goL1JtapY7q