AFL
Arguably Functional Language
AFL Documentation
Arrays
Arrays are special types that contain multiple values in an ordered list. Arrays are manipulated and created through special functions, which are detailed below.
newArray()
newArray returns an empty array. Arrays must be created with this method before they can be utilized.
arrayAdd(array value)
arrayAdd adds an item to the end of a specified array. the value can be anything, but an array cannot contain itself.
arrayGet(array index)
arrayGet returns the item at the specified index of the array, provided that it exists. Arrays are indexed from 0.
arraySize(array)
returns the number of items in the array.
arraySet(array index value)
arraySet sets the index of a particular array to the specified value, provided the array already has an value at the specifed index.
arrayRemove(array)
removes the last item from the array.
arrayRemove(array index)
removes the item at the specified index from the array.