Which is correct or most preferred?
insert the item at the beginning of the list
or
insert the item to the beginning of the list
prepositions
Which is correct or most preferred?
insert the item at the beginning of the list
or
insert the item to the beginning of the list
Best Answer
Just between the two examples, insert at is the more common.
It would typically be used in a technical context.
Here are three examples from Microsoft.
Text.Insert:
ParameterBindingRulesCollection.Insert Method:
ImmutableArray.Insert Method (Int32, T):
And an example from Mozilla:
As somebody who's worked a long time in the technical field, inserting items at the beginning of a list sounds natural to me.
However, if you're not talking about a specific list location, but a list in general, it would be more common to say: