func doubleInPlace(number: inout Int) { number *= 2; } func main(){ var i = 2; doubleInPlace(i); //i : 4 }