Repeat a string X times


I want to repeat a string several times.


// String literal
var s : String

// Set 's' to 5 x "Hello"

for var i in 0..<5 {
    s += "Hello"


Heard the news?

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