Closed Tpt closed 9 years ago
Would be better to begin indexing at 0
Yes, make sense
Would be great to allow other negatives than -1.
It's what is done: "If i < 0 then it returns the _i_th element from the end"
It's what is done: "If i < 0 then it returns the ith element from the end"
Sorry, read too fast.
Ok for me.
Would be better to begin indexing at 0 (this is almost a standard in CS) => So be carefull when parsing, because in natural language, indexing start at 1
Let's go with it!
Would be better to begin indexing at 0 (this is almost a standard in CS). Especially if -1 is the last element. Would be great to allow other negatives than -1.