how to combine multiple arrays swift code example
Example 1: join arrays swift
let array1 = [1, 2, 3]
let array2 = [4, 5, 6]
let array3 = array1 + array2
print(array3)
//[1, 2, 3, 4, 5, 6]
Example 2: swift add two arrays
let c = [a, b].lazy.flatten()