I have a list
of about 40 entries. And I frequently want to append an item to the start of the list (with id 0) and want to delete the last
entry (with id 40) of the list.
How do I do this the best?
Example with 5 entries:
[0] = "herp"
[1] = "derp"
[2] = "blah"
[3] = "what"
[4] = "da..."
after adding "wuggah"
and deleting last it should be like:
[0] = "wuggah"
[1] = "herp"
[2] = "derp"
[3] = "blah"
[4] = "what"
And I don't want to end up manually moving them one after another all of the entries to the next id.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…