|
Just as something that bothers me continuously (much like factors in R), is there a nice under-the-hood or mathematical reason why when subsetting lists or numpy arrays the last number is excluded? (e.g., mylist[1:3] means the 2nd and 3rd element, but not the 4th) I'm fine with zero-indexing for some reason but that one fucks me up on the regular.
|
# ¿ Feb 20, 2017 02:12 |
|
|
# ¿ May 14, 2024 14:46 |
|
I guess that's as good a reason as I could have hoped for. Did/have other languages make/made that design choice?
|
# ¿ Feb 20, 2017 03:18 |
|
Thanks all. Yeah I'm sure if it were the first thing I picked up I wouldn't be making this mistake so much (and I think I will do better going forward now that I have this conversation tagged to it).
|
# ¿ Feb 20, 2017 19:43 |