Append array to array

 Problem

I want to append an Array to another Array.



 Recipe


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

// Append another array
a += [4,5,6]
print(a)
		
				

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