How do I concatenate or merge arrays in Swift?
Asked 07 September, 2021
Viewed 336 times
  • 64
Votes

If there are two arrays created in swift like this:

var a:[CGFloat] = [1, 2, 3]
var b:[CGFloat] = [4, 5, 6]

How can they be merged to [1, 2, 3, 4, 5, 6]?

14 Answer