Array concatenation: Difference between revisions
Content added Content deleted
(→Insitux: implementation) |
(Add LDPL) |
||
Line 2,556: | Line 2,556: | ||
arr3 = array(4, 5, 6) |
arr3 = array(4, 5, 6) |
||
arr3 = array(1, 2, 3, 4, 5, 6)</syntaxhighlight> |
arr3 = array(1, 2, 3, 4, 5, 6)</syntaxhighlight> |
||
=={{header|LDPL}}== |
|||
{{libheader|ldpl-std}} |
|||
<syntaxhighlight lang="ldpl">include "std-list.ldpl" |
|||
data: |
|||
arr1 is number list |
|||
arr2 is number list |
|||
procedure: |
|||
push 1 to arr1 |
|||
push 2 to arr1 |
|||
push 3 to arr2 |
|||
push 4 to arr2 |
|||
append list arr2 to list arr1 |
|||
display list arr1 |
|||
</syntaxhighlight> |
|||
{{out}} |
|||
<pre> |
|||
[1, 2, 3, 4] |
|||
</pre> |
|||
=={{header|LFE}}== |
=={{header|LFE}}== |