Array Functions
RDL2 provides a rich set of functions to operate on arrays.
List Functions
Lists are the most common usage of arrays. Entries may be inserted into, removed from, or added to the end of a list.
Add an element on to the end of an array. | |
Removes all entries from an array. | |
Inserts an item into the array at the given index. | |
Removes an element at a specified index from an array. | |
Returns the size of an array. |
Queue Functions
Queues are a type of array that conform to a 'first in, first out' model. Queues are useful for storing information of processing at a later time when items should be processed in the same order in which they are received.
Returns the entry at the beginning of the queue. | |
Adds an entry to the end of the queue. |
Stack Functions
Stacks are another type of array that conform to a 'last in, first out' model. Entries are 'pushed' on to the top of the stack and retrieved by 'popping' them off the top of the stack.
Removes the top item from the stack and returns it. | |
Places an entry on the top of the stack. |
- Array-add-function add array.
- Array-clear-function clear array.
- Array-insert-function insert array.
- Array-remove-function
- Array-size-function size integer array.
- Dequeue-function dequeue object queue.
- Enqueue-function enqueue queue.
- Pop-function pop Variable stack.
- Push-function push stack.