How can I deal with this error without creating additional variable?
func reduceToZero(x:Int) -> Int { while (x != 0) { x = x-1 //
Swift3 answer for passing mutable array pointer.
Function:
func foo(array: inout Array<Int>) { array.append(1) }
Call to function:
var a = Array<Int>() foo(array:&a)