For example, imagine I had the following text:
/ apple
/ orange
/ banana
/ bread
How could I efficiently add consecutive integers in a column to make?
/1 apple
/2 orange
/3 banana
/4 bread
Note that in real problems, the list might be 20, 50, or more lines long.