RosettaCodeData/Task/Array-concatenation/Plain-English/array-concatenation.plain

14 lines
382 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
To append some things to some other things:
Put the things' first into a thing.
If the thing is nil, exit.
Remove the thing from the things.
Append the thing to the other things.
Repeat.
To prepend some things to some other things:
Get a thing from the things (backwards).
If the thing is nil, exit.
Remove the thing from the things.
Prepend the thing to the other things.
Repeat.