Built-in symbols of Indie language.


Variables

Constants


Functions

abs()

function

Overloads


len()

function

Overloads


max()

function

Overloads


min()

function

Overloads


range()

function

Overloads


round()

function

Overloads


sum()

function

Overloads


Types

bool

type

Built-in Indie type (similar to Python’s).

Methods


dict[K, V]

type

Built-in Indie type (similar to Python’s).


float

type

Built-in Indie type (similar to Python’s).

Methods


int

type

Built-in Indie type (similar to Python’s).

Methods


list[T]

type

Built-in Indie type (similar to Python’s).

Methods

Example
# examples of list creation:
a = [1, 2, 3]  # `a` has type `list[int]`
b = [1, 2, 3, 4.2]  # `b` has type `list[float]`
c = ["a", "b", "c"]  # `c` has type `list[str]`
d = [(1, "a"), (2, "b"), (3, "c")]  # `d` has type `list[tuple[int, str]]`

e = [0, 1, 2, 3, 4, 5, 6, 7]
f = e[2:5]  # `f` is `[2, 3, 4]`
g = e[:5]  # `g` is `[0, 1, 2, 3, 4]`
h = e[2:]  # `h` is `[2, 3, 4, 5, 6, 7]`
i = e[:]  # `i` is a copy of `e`
j = e[1:7:2]  # `j` is `[1, 3, 5]`
k = e[5:2:-1]  # `k` is `[5, 4, 3]`
l = e[5::-1]  # `l` is `[5, 4, 3, 2, 1, 0]`
m = e[::-1]  # `m` is `[7, 6, 5, 4, 3, 2, 1, 0]`

NoneType

type

Builtin Indie type (similar to Python’s None type).


str

type

Built-in Indie type (similar to Python’s).

Methods


tuple[...]

type

Built-in Indie type (similar to Python’s).