Display

Swift Version

ExpressibleByIntegerLiteral

protocol ExpressibleByIntegerLiteral

A type that can be initialized with an integer literal.

The standard library integer and floating-point types, such as Int and
Double, conform to the ExpressibleByIntegerLiteral protocol. You can
initialize a variable or constant of any of these types by assigning an
integer literal.