### Built-in Types

Bool
Boolean type. Bool has two possible values:
`0B`
and
`1B`
{}. [Like in Boolean algebra, in which 0 and 1 are used.]

Int
Integral type (32 or 64 bits).
To construct an integer from a string write
`Int(s)`
.
To construct an integer from a string in radix
`base`
write
`Int(s, radix' base)`
.
To construct an integer from an array of bytes write
`Int(bytes' b)`
for little-endian, and
`Int(bytes_be' b)`
for big-endian.
Methods

Int8
Int16
Int32
Int64
or
Int1
Int2
Int4
Int8
Signed integers.

Byte
UInt16
UInt32
UInt64
Unsigned integers.

BigInt
Arbitrary-precision integer.

Float
Floating-point type (32 or 64 bits).

Float32/SFloat
Float64
or
Float4/SFloat
Float8

Char
Character.
For example, this code creates a character with code 65:
```Char(code' 65)
```
To create a character from single-digit integer number write this:
```Char(digit' i)
```
To create a character from single character string write this:
```Char(string' s)
```
(This differs from
`s`
by throwing an error if length of
`s`
is greater than 1.)
To create a character from single character string literal write this:
```Char("\0")
```
Members
Methods

String
String type. Can be constructed from a string literal. To construct a string from an integer in radix
`base`
write
`String(i, radix' base)`
.
Note: in contrast to Python, strings in 11l are mutable (like in C++).
Members
Methods

Tuple
A tuple. For example, a tuple with two items:
`(1, 2)`
. [Type of this tuple is
`(Int, Int)`
or
`Tuple[Int, Int]`
or
`IVec2`
.]

The elements of tuples consisting of from 2 to 4 elements of the same arithmetic type can be accessed by
`x`
,
`y`
,
`z`
,
`w`
or
`r`
,
`g`
,
`b`
,
`a`
.
Arithmetic operations (
`+`
,
`-`
,
`*`
,
`/`
) on tuples are performed componentwise {}.
Note 1: like in mypy, tuples in 11l are heterogeneous, but arrays (analogue of Python's lists) are homogeneous.
Note 2: in contrast to Python, tuples in 11l are mutable (like in C++).

Tuple with named items/elements:
`(name' ‘John’, age' 30)`
. [Type of this tuple is
`(String name, Int age)`
or
`Tuple[String name, Int age]`
.]

Array
An array. For example, an array with two items:
`[1, 2]`
. [Type of this array is
`[Int]`
or
`Array[Int]`
.]

Members
Methods

Dict
A dictionary. For example, a dictionary with two items:
`[‘key1’ = 1, ‘key2’ = 2]`
.
[Type of this dictionary is
`[String = Int]`
or
`Dict[String, Int]`
.]

Methods

DefaultDict
A dictionary, which does not throw an exception when accessing a non-existent key (it inserts a new item with a default value in this case).
For example, a default dictionary with two items:
`DefaultDict([‘key1’ = 1, ‘key2’ = 2])`
.
[Type of this dictionary is
`DefaultDict[String, Int]`
.]

Set
A set. For example, a set with two items:
`Set([1, 2])`
. [Type of this set is
`Set[Int]`
.]

Methods

Deque
A double-ended queue. For example, a deque with two items:
`Deque([1, 2])`
. [Type of this deque is
`Deque[Int]`
.]

Methods

File
A file object.
Methods