I think I have a rather simple question, however, it has me stumped.
All I need to do is insert something to a list like so:
list = ["apples", "oranges", "more apples"]
list.insert(10, "pears")
Without resulting in this:
["apples", "oranges", "more apples", "pears"]
There need to be a number of empty spaces for the indexes 4 to 9, much like in Lua or Ruby with the nil value. I could use a for-loop to fill the gap, however, I would have trouble iterating over it and inserting into the beginning of the list (because it would shove everything else to the side). Any thoughts are appreciated!