Be concise.
Be useful.
All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating material.
Please try to avoid dependencies to third-party libraries and frameworks.
var ab = a.concat(b);
ab = a + b
int[] a, b;
auto ab = a ~ b;
ab = a ++ b
ab := append(a, b...)
var ab []T
ab = append(append(ab, a...), b...)
ab := make([]T, len(a)+len(b))
copy(ab, a)
copy(ab[len(a):], b)
ab = a + b
let ab = [a, b].concat();
auto ab = a;
ab.insert (ab.end (), b.begin (), b.end ());
$ab = array_merge($a, $b);
val ab = a ++ b
@ab = (@a, @b)
var ab = new ArrayList<>(a);
ab.addAll(b);
(setf ab (append a b))
real, dimension(:), allocatable :: ab
ab = [a, b]
(def ab (concat a b))
var ab = a + b;
AB = A ++ B.
(define ab (append a b))
ab = {}
table.foreach(a, function(k, v) table.insert(ab, v) end)
table.foreach(b, function(k, v) table.insert(ab, v) end)
val ab = a + b
val ab = a ::: b
ab = {}
table.move(a, 1, #a, 1, ab)
table.move(b, 1, #b, #ab + 1, ab)
ab := a,b