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).

Int8/Byte
Int16
Int32
Int64
or
Int1/Byte
Int2
Int4
Int8

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

Float32
Float64
or
Float4
Float8

Char
Character. For example this code creates a character with code 65:
Char(code' 65)
Members
Methods

String
String type. Can be constructed from a string literal.
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)
.]

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++).


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

Members
Methods

Dict
A dictionary. For example, a dictionary with two items:
[‘key1’ = 1, ‘key2’ = 2]
. [Type of this dictionary is
[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).

File
A file object.
Methods