3 ms·
From the text: "It is impossible to use this new slice value to access the last three elements of the original array" Shouldn't this rather be: "It is impossib
by wreegab 13y ago
From the text: "It is impossible to use this new slice value to access the last three elements of the original array"
Shouldn't this rather be: "It is impossible to use this new slice value to access the last element of the original array"
- Jayschwa 13y agoIt 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)