Concatenate arrays

 Problem

I want to concatenate 2 or more arrays.



 Recipe


// Initialize the first Array
let a = [1,2,3]

// Concatenate them
var b = a + [4,5,6]
print(b)
				

Heard the news?

The Swift Cookbook for Swift 3 is at last here! For iBooks, Kindle and Paperback.
Hurry up - and Check it out! ;-)

 

 Playground