4 ms·
It looks like the third number specifies an index, not a length. var array [10]int slice = array[2:4:7] > its capacity is now only 5 elements (7-2)
by Jayschwa 13y ago
It looks like the third number specifies an index, not a length.
var array [10]int
slice = array[2:4:7]
> its capacity is now only 5 elements (7-2)