|
|
|
|
|
by pwdisswordfish5
1982 days ago
|
|
But zero is an https://en.wikipedia.org/wiki/Ordinal_number_(mathematics) . The unintuitive step is apparently identifying the index with the cardinality of the collection from before the item arrives, not after it arrives – i.e. ‘the n-th element is the one that arrived after I had n elements’, not ‘the n-th element is the one such that I had n elements after it arrived’. The former identification results in 0-based ordinals, the latter leads to 1-based ordinals – and to some misconceptions about infinity, such as imagining an element ‘at index infinity’ in an infinite list, where no such need to exist. |
|