3 ms·
I was wondering when we'll get three-index slices
by humanfromearth 13y ago
I was wondering when we'll get three-index slices
- wreegab 13y agoFrom 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)