Concatenate strings

 Problem

I want to concatenate 2 or more strings.



 Recipe


// String literals
let a = "Hello "

// Concatenate them
var c = a + "World!"
print(c)
				

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