Append string to string

 Problem

I want to append a String to another String.



 Recipe


// String literal
var a = "Hello "

// Append something
a += "World!"
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