Why is the & operator not defined for arrays? Is this intentional?
proc `&`[T; al, bl: static[int]](a: array[al, T], b: array[bl, T]): array[al + bl, T] =
for i, e in a: result[i] = e
for i, e in b: result[i + al] = e
You can use concat to concatenate arrays.
Which file should I import for concat'? Looks like `concat from std/sequtils cannot concatenate arrays, only sequences.
One can also use the @ operator:
let a = [1, 2, 3, 4]
let b = [5, 6]
echo @a & @b