Type Alias


A type that represents an integer literal.


typealias Int.IntegerLiteralType = Int

See Also

Infrequently Used Functionality


Creates a new value equal to zero.

init(integerLiteral: Int)

Creates an instance initialized to the specified integer value.

func distance(to: Int) -> Int

Returns the distance from this value to the given value, expressed as a stride.

func advanced(by: Int) -> Int

Returns a value that is offset the specified distance from this value.