verbs - Is there a word meaning "append", but at the beginning, not the end?



In computer programming, when you append a "string" to another, you add it to the end of the former string.


E.g.


String string1 = "abcd";
String string2 = "efgh";

Appending the two strings would give


"abcdefgh"

But what if I wanted to add string2 before string1 to have the result:


"efghabcd"

What would be a good name for that that reverse operation? What is the opposite of "append"?



Answer



Prepend:



(computing, linguistics, transitive) To attach (an expression, phrase, etc.) to another, as a prefix.



Comments

Popular posts from this blog

verbs - "Baby is creeping" vs. "baby is crawling" in AmE

commas - Does this sentence have too many subjunctives?

time - English notation for hour, minutes and seconds

grammatical number - Use of lone apostrophe for plural?

etymology - Origin of "s--t eating grin"

etymology - Where does the phrase "doctored" originate?

word choice - Which is the correct spelling: “fairy” or “faerie”?