fun arrayConcat(a: Array, b: Array): Array { return Array(a.size + b.size, { if (it in a.indices) a[it] else b[it - a.size] }) }