ucl/_docs/mod/lists.md
Leon Mika 2fcfe9d540 Added iterators
Iterators are an unbounded sequence of elements that can only be consumed one-by-one.
2025-01-30 22:15:38 +11:00

355 B

List Builtins

add

lists:add LIST [ARGS...]

Adds values to the end of the list. Returns the modified list.

batch

lists:batch LIST SIZE

Returns a list containing the items of LIST grouped into a sub-list no greater than SIZE. SIZE must be an integer greater than 0. If LIST is empty, then an empty list is returned.