0
How to use a var with function's parameter
The compiler complaints when I use var keyword in functionc declaration. I tried this example in Playgrounds and it doesn't work. func myFunc(var num1: Int) -> Int { // function's body }
1 Odpowiedź
0
Did you make sure this is the correct code?