3 ms·
L[2] has nothing to do with "second". It just means "plus 2". If you consider Monday the first day of the week, then Monday[1] is (naturally) Monday + 1. Zero i
by once-in-a-while 10y ago
L[2] has nothing to do with "second". It just means "plus 2".
If you consider Monday the first day of the week, then Monday[1] is (naturally) Monday + 1.
Zero indexing just feels right, I can't help it (it's written in our DNA).
- Avshalom 10y agoI consider monday the second day of the week
- once-in-a-while 10y agoMe too (for both historical and religious reasons). I just meant to be "modern friendly" ;)
- Avshalom 10y agowhat do you mean by modern friendly? Egypt and it's 100 million (possibly other muslim majority countries?) consider thursday-friday the weekend.
- d0mine 10y agoIn C: L[2] == *(L + 2) == *(2 + L) == 2[L]