Array Type
Last changed: -10.10.192.236

.
Summary
Array inherits from Object

Members

Instance Members

Array Append(Array array)
Answer this array after the supplied array has been appended on the end.
Array Collect(Block block)
Evalute the given block once for each object in the array; answer a new array containing the result of each block evaluation.
Integer Count
Answer the number of objects in the array
Object IsEmpty
Answer true if this object is empty, else false
Object Item(Integer index)
Answer the item at the given index
Array Select(Block block)
Evaluate the block for each item in the array; answer a new Array that includes on those objects for which the block evaluated to true.
Array Snip(Integer maxCount)
Answer a new array that is a copy of this array, but trimmed to have no more than the given number of objects.
Array Sort
Sort the array; answer a new array (that is sorted)
Array SortBy(Block block)
Sort the array; evaluate the block for each object in the array to determine the object used to order that item in the sort
String ToOneString
Answer a single string that is the concatenation of all of the objects in the array converted to strings
Object ToPresentation
Convert this object to a Presentation
Array Unique
Answer the unique elements in this array

Type Members

Discussion

Examples

With