0

For a variable parameter, is var written before or after its external parameter name?

16th Jan 2016, 3:13 AM
Sharon Chen
Sharon Chen - avatar
2 Answers
0
before like var pName = "value"
15th Jun 2016, 12:04 AM
Shimul Debnath
Shimul Debnath - avatar
0
If I understand your question correctly, you don't use var at all in function parameters. func add(a numA: Int, b numB: Int)-> Int { return numA + numB } print(add(a: 3, b: 4)) a and b are the external variable names.
7th Aug 2016, 12:56 AM
Nick