1> infix operator +- 2. func +-(lhs: Int, rhs: Int) -> Int { 3. return lhs + rhs - 1 4. } 5> (+-)(2, 5) $R0: Int = 6 6> (+-)(lhs: 2, rhs: 5)
1> infix operator +- 2. func +-(lhs lhs: Int, rhs rhs: Int) -> Int { 3. return lhs + rhs - 1 4. } error: repl.swift:2:9: error: operator cannot have keyword arguments func +-(lhs lhs: Int, rhs rhs: Int) -> Int { ^~~~ error: repl.swift:2:23: error: operator cannot have keyword arguments func +-(lhs lhs: Int, rhs rhs: Int) -> Int { ^~~~