Optional
public extension Optional where Wrapped == Int
-
Increment an optional Int (also from nil to val)
Declaration
Swift
mutating func increment(by val: Int = 1)
Parameters
val
to increment by