Hm, that is a good question. I don’t think you should depend upon it, as it is possible to remove an item from the middle of the list – the index might jump then. But I am not sure. If you have a use case where you are certain the list will not be reordered, and that nothing will be removed from it, I think you can assume the index will stay valid.
↧