Array concatenation: Difference between revisions

Content added Content deleted
(→‎{{header|Kotlin}}: Arrays *do* have a plus operator in kotlin.)
(Add lang example)
Line 2,452: Line 2,452:
{def B {A.new 7 8 9}} -> [7,8,9]
{def B {A.new 7 8 9}} -> [7,8,9]
{A.concat {A} {B}} -> [1,2,3,4,5,6,7,8,9]
{A.concat {A} {B}} -> [1,2,3,4,5,6,7,8,9]
</syntaxhighlight>

=={{header|Lang}}==
<syntaxhighlight lang="lang">
&a $= [1, 2, 3]
&b $= [4, 5, 6]
&c $= &a ||| &b
fn.println(&c)
</syntaxhighlight>
</syntaxhighlight>