Model data with numbers, Boolean values, and other fundamental types.
On This Page
A value type whose instances are either true or false.
A signed integer value type.
A double-precision, floating-point value type.
A single-precision, floating-point value type.
A half-open interval from a lower bound up to, but not including, an upper bound.
An interval from a lower bound up to, and including, an upper bound.
A type representing an error value that can be thrown.
A type that represents either a wrapped value or nil, the absence of a value.
Write generic code that works with any numeric type.
Work with fixed-width numeric types of different sizes.
Use these functions with numeric values and other comparable types.
The system’s default source of random data.
A type that provides uniformly distributed random data.
Work with text using Unicode-safe strings.
Store and organize data using arrays, dictionaries, sets, and other data structures.