Check out example codes for "swift add two arrays". It will help you in understanding the concepts better.

Code Example 1

let array1 = [1, 2, 3]
let array2 = [4, 5, 6]
let array3 = array1 + array2

print(array3)
//[1, 2, 3, 4, 5, 6]

Code Example 2

let c = [a, b].lazy.flatten()

Learn ReactJs, React Native from akashmittal.com