4 ms·
That isn't an index into a string. It is an opaque indicator of position in a string. That opaque indicator of position happens to be implemented as an index in
by TheCoelacanth 11y ago
That isn't an index into a string. It is an opaque indicator of position in a string. That opaque indicator of position happens to be implemented as an index into the underlying array, but it is not itself an index.
- Veedrac 11y agoThat sounds like an index to me, and the operation surely indexing. I mean, if one has a hashmap hash = {"foo": 1, "bar": 2} we say hash["foo"] is an indexing operation, and "foo" is an index. Seems the same to me.