I am very new to Swift, actually I started learning it today. Can someone tell me whats wrong with calling the function in this way?
func myAddition(i:NSInteger,j:NSInteger) ->NSInteger {
i
j
return i+j
}
myAddition(5, 6)
Edit I fixed the error by inserting j:
myAddition(5, j: 6)
is this normal? I am following a tutorial and there its working without j