Int
struct Int : SignedIntegerType, Comparable, Equatable
-
Performs a closure the given number of times
Parameter
Parameter f: The closure
Returns
Void
Declaration
Swift
public func times(f: () -> () )Parameters
fThe closure
Return Value
Void
-
Performs a closure on each int between
selfandn(counting up)Parameter
Parameter n: The up to number
Parameter
Parameter f: The closure
Returns
Void
Declaration
Swift
public func upto(n: Int, f: (Int) -> () )Parameters
nThe up to number
fThe closure
Return Value
Void
-
Performs a closure on each int between
selfandn(counting down)Parameter
Parameter n: The up to number
Parameter
Parameter f: The closure
Returns
Void
Declaration
Swift
public func downto(n: Int, f: (Int) -> () )Parameters
nThe up to number
fThe closure
Return Value
Void
Int Extension Reference