Omitting external methods parameters in Swift
Forums:
func sum(n1: Int, _ n2: Int) -> Int {
return n1 + n2
}
let value = sum(3, 2)
- Log in to post comments
func sum(n1: Int, _ n2: Int) -> Int {
return n1 + n2
}
let value = sum(3, 2)