sequence
TYPES sequence(TYPE first, TYPE step, INTEGER count)
Create a sequence of numbers or vectors.
repeat
TYPES repeat(TYPE[] item, INTEGER count)
Create a list by repeating same item or pattern.
resize
resize(TYPES & list, INTEGER newsize, TYPE pad = nul)
Resize list.
insert
insert(TYPES & list, INTEGER at, TYPE[] insert = nul)
Insert item or list of items into a list at specified position.
insert(TYPES & list, TYPE[] insert = nul)
Insert item or list of items at the end of the list.
feedin
feedin(TYPES & list, INTEGER at, INTEGER count = 1, TYPE pad = nul)
Equivalent to insert(list, at, repeat(pad, count)).
delete
delete(TYPES & list, INTEGER at, INTEGER count = 1)
Delete items from list.
remove
remove(TYPES & list, INTEGER at, INTEGER count = 1)
Delete items from list. Faster than delete, does not preserve item order in the list.
include
include (TYPES & list, TYPE[] itms)
Append items to end of list, but only items not already in the list.
exclude
exclude (TYPES & list, TYPE[] itms)
Delete items from the list. All occurences of each item are removed. Does not preserve item order in the list.
excludef(TYPES & list, TYPE[] itms)
Delete items from the list. Only the first occurence of each item is removed. Does not preserve item order in the list.
pack
pack(TYPES & list, TYPE[] src, INTEGER at = 1, INTEGER step = 1)
Pack items from source list: list[n] = src[at + (n - 1) * step]
unpack
unpack(TYPES & list, TYPES src, INTEGER at = 1, INTEGER step = 1))
Unpack items from source list: list[at + (n - 1) * step] = src[n]