I want to append a list of strings to another string one by one (not all at once). Based on the description of paste()
, its complexity should be more similar to c()
below.
what is time complexity of append (vector / list)?
Is there a way to make repetitive appending strings to another string run in time linear to the total length of the strings appended?