Welcome to the Treehouse Community
Looking to learn something new?
Michael McKenna3,451 Points
What would be an efficient way of inserting a String into a long list?
It looks like all of the items in the list are shifting after inserting a new item at the beginning. Is there a different/more dynamic way of inserting a new variable? I feel like this method wouldn't be smooth if there was a list of thousands of items.
Marina Alenskaja9,320 Points
Generally, I don't think arrays would be suited for thousands of items. But if you are asking for an easier way to append values - the += operator can be used to add lot's and lot's more strings to your array.
If that's not what you're looking for, let me know.