let c = a + b
print(c) // [1.0, 2.0, 3.0, 4.0, 5.0, 6.0]
a += b// Or:
a.append(contentsOf: b) // Swift 3
a.appendContentsOf(b) // Swift 2
a.extend(b) // Swift 1.2print(a) // [1.0, 2.0, 3.0, 4.0, 5.0, 6.0]

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store