Methods
makeRange ( -- range ) creates a range that points to all entries of the array
at ( index -- value ) returns a entry by index
clear ( -- ) deletes all entries from the array
empty ( -- condition ) checks if the array is empty
endIter ( -- iterator ) returns an end iterator for the array
enlarge ( value newSize -- ) resizes the array to a larger size, filling new entries with copies of a given value
first ( -- value ) returns the first element of the array
firstIter ( -- iterator ) returns the iterator pointing to the first element of the array
getSize ( -- size ) returns the number of entries in the array
last ( -- value ) returns the last element of the array
lastIter ( -- iterator ) returns an iterator pointing to the last element of the array
popBack ( -- ) deletes the last entry from the array
pushBack ( value -- ) appends a value to the end of the array
set ( value index -- ) sets a new value to an array element by its index
shrink ( newSize -- ) resizes the array to a smaller size
single ( -- condition ) checks if there is exactly one entry in the array
Free functions
Array ( -- array ) creates an empty array
copy ( array0 -- array1 ) creates a new array with all its entries being copies (not aliases) of entries of an existing array
enum ( array body -- ) enumerates all elements in ascending index order using an input function with the possibility to interrupt
enumIter ( array body -- ) enumerates all iterators in ascending index order using an input function with the possibility to interrupt
fieldCount ( array -- size ) returns the number of entries in an array
fieldCount ( range -- size ) returns the number of elements in a range
makeArray ( value size -- array ) creates an array from multiple copies of the given value
makeArray ( range -- array ) creates an array from a range, the array's entries will be aliases of the entries of the input range
makeArray ( list -- array ) creates an array from a builtin-list, the array's entries will be aliases of the entries of the input builtin-list
@ ( index array -- value ) returns an entry of an array by index
! ( value index array -- ) sets value of an entry in an array by index
- ( iterator0 shift -- iterator1 ) returns an iterator shifted backward
- ( iterator0 iterator1 -- shift ) returns a shift from the first iterator to the second iterator
+ ( iterator0 shift -- iterator1 ) returns an iterator shifted forward
= ( iterator0 iterator1 -- condition ) checks if iterators point to same entry
< ( iterator0 iterator1 -- condition ) checks if the first iterator points to an entry with a smaller index
> ( iterator0 iterator1 -- condition ) checks if the first iterator points to an entry with a greater index
Tags
ARRAY
CONTAINER