The field 'index' describes two things: 1. the index the next element will be added to 2. the size of the list Most methods use the second meaning.
The field 'index' describes two things: 1. the index the next element will be added to 2. the size of the list Most methods use the second meaning.