3 ms·
You're right of course. Not intentional. 0:3 picks out index 0, 1, 2. So 1:3 picks out the second and third element, which are indexed by 1 and 2 respectively
by Certhas 8y ago
You're right of course. Not intentional.
0:3 picks out index 0, 1, 2.
So 1:3 picks out the second and third element, which are indexed by 1 and 2 respectively.
My guess is that what one prefers probably depends entirely on the data structures one works with most....
- shele 8y agoI like how you got it wrong, proving your point.