Array concatenation: Difference between revisions
Content added Content deleted
(→Joy: add) |
Jazzedpineda (talk | contribs) (Add Plain English) |
||
Line 3,310: | Line 3,310: | ||
0 0 0 0 15 16 |
0 0 0 0 15 16 |
||
</syntaxhighlight> |
|||
=={{header|Plain English}}== |
|||
Plain English has these functions for concatenating two sets of things: |
|||
<syntaxhighlight lang="text"> |
|||
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. |
|||
</syntaxhighlight> |
</syntaxhighlight> |
||