Merge multiple arrays into a multidimensional one in Swift?

Viewed 20

Example

let a = [a, b, c]
let b = [x, y, z]

I need this response

let c = [[a, b, c],[x, y, z]]

There are two approaches as I see it, either I concatenate both arrays (don't know if it's possible), or to append it directly in a multidimensional array.

0 Answers
Related