Object representing an array of objects.
make System.collections.array()
: Creates an empty array.operator +(array)
: Appends array to the end of this arrayoperator ==(rhs)
: Compares two arrays for equality.operator !=(rhs)
: Compares two arrays for lack of equality.operator <(rhs)
: Returns true if every item in the left array is less than every item in the right.operator >(rhs)
: Returns true if every item in the left array is greater than every item in the right.operator <=(rhs)
: Returns true if every item in the left array is less than or eaual to every item in the right.operator >=(rhs)
: Returns true if every item in the left array is greater than or equal to every item in the right.operator <<(item)
: Appends item to the end of this arrayoperator map(method)
: Runs the given method to every item in the array, and returns a new array with the resulting objectsoperator reduce(method)
: Reduces an array by calling the method provided on every item, and passing the result to the next item. E.g.: ['Hello',', World!'] <| method(result,item) [ result + item; ] = 'Hello, World'operator [](index)
: Gets the item at the given index__op_array__(index)
: Gets the item at the given index__op_equals__(rhs)
: Compares two arrays for equality.__op_geq__(rhs)
: Returns true if every item in the left array is greater than or equal to every item in the right.__op_gt__(rhs)
: Returns true if every item in the left array is greater than every item in the right.__op_leq__(rhs)
: Returns true if every item in the left array is less than or eaual to every item in the right.__op_lshift__(item)
: Appends item to the end of this array__op_lt__(rhs)
: Returns true if every item in the left array is less than every item in the right.__op_map__(method)
: Runs the given method to every item in the array, and returns a new array with the resulting objects__op_nequals__(rhs)
: Compares two arrays for lack of equality.__op_plus__(array)
: Appends array to the end of this array__op_reduce__(method)
: Reduces an array by calling the method provided on every item, and passing the result to the next item. E.g.: ['Hello',', World!'] <| method(result,item) [ result + item; ] = 'Hello, World'append_item(item)
: Appends an item to the end of the array.capacity()
: Returns the current capacity of the array. Only interesting internally.get(index)
: Gets the item at the given indexindex_of(object)
: Finds the index of a given object in the array, or -1 if not found.map(method)
: Maps the method onto the arrayprint()
: Prints the array.reverse()
: Reverses the array. Object returned is a new array.set(index, item)
: Sets the given index to the provided value.size()
: Returns the number of objects in the array.sort(comparator)
: Sorts the array.str()
: Returns the string form of the array.