Array concatenation: Difference between revisions

Content added Content deleted
imported>J7M
(add example for SmallBASIC)
imported>Brie
(Add Nu)
Line 3,073: Line 3,073:
c[0..5] = a
c[0..5] = a
c[6..10] = b</syntaxhighlight>
c[6..10] = b</syntaxhighlight>

=={{header|Nu}}==
<syntaxhighlight lang="nu">
let a = [1 2 3]
let b = [4 5 6]
[$a $b] | flatten
</syntaxhighlight>
{{out}}
<pre>
╭───┬───╮
│ 0 │ 1 │
│ 1 │ 2 │
│ 2 │ 3 │
│ 3 │ 4 │
│ 4 │ 5 │
│ 5 │ 6 │
╰───┴───╯
</pre>


=={{header|Oberon-2}}==
=={{header|Oberon-2}}==