Int
public extension Int
-
Return incremented self, constrained to range 0..<count>
Declaration
Swift
func next(count: Int) -> Int
Parameters
count
Return Value
self + 1 wrapped around on count
-
Return decremented self, constrained to range 0..
Declaration
Swift
func prev(count: Int) -> Int
Parameters
count
Return Value
self - 1 wrapped around on count
-
Declaration
Swift
mutating func toNext(next: Bool, count: Int)