Previous Section Next Section

A.7 Lists

A.7.1 Selected List Pseudo-Methods

add[0](list-item : list-type)

add[0](list : list)

clear()

delete(index : int)

pop[0]() : list-type

push[0](list-item : list-type)

insert(index : int, list : list | list-item : list-type)

A.7.2 Selected List Expressions

size() : int

top[0]() : list-type

reverse() : list

sort(expr : expr) : list

sum(expr : int) : int

count (expr : bool) : int

exists(index : int) : bool

has(expr : bool) : bool

is_empty() : bool

is_a_permutation(list: list) : bool

all(expr : bool) : list

all_indices(expr : bool) : list of int

first(expr : bool) : list-type

last(expr : bool) : list-type

first_index(expr : bool) : int

last_index(expr : bool) : int

key(key-expr : expr) : list-item

key_index(key-expr : expr) : int

max(expr : int) : list-type

max_value(expr : int) : int | uint

min(expr : int) : list-type

min_value(expr : int) : int | uint

swap(small : int, large : int) : list of bit

crc_8|32(from-byte : int, num-bytes : int) : int

unique(expr : expr) : list

Previous Section Next Section