Returns the given number unchanged.
SDK
Framework
On This Page
prefix static func + (x: Int8) -> Int8
The given argument without any changes.
You can use the unary plus operator (+) to provide symmetry in your code for positive numbers when also using the unary minus operator.
+
let x = -21 let y = +21 // x == -21 // y == 21