Arraylist methods syntax
The syntax for each of the Arraylist class methods is shown below.
Square brackets indicate optional elements of the method invocation. See also the notation conventions for methods and the List of Arraylist methods.
[%count =] al:Add( itemList)
al:Audit( method, [NumWidth= number], [Separator= string], [Start= number], - [MaxItems= number], [Label= string])
%average = al:Average( method)
%copyList = al:Copy
%count = al:Count
%count = al:CountSubset( selectionCriterion)
%copyList = al:DeepCopy
[%item =] al:Dequeue
[%count =] al:Enqueue( collectionItem)
%item = al:FindNextItem( selectionCriterion, [Start= number])
%number = al:FindNextItemNumber( selectionCriterion, [Start= number])
%item = al:FindPreviousItem( selectionCriterion, [Start= number])
%number = al:FindPreviousItemNumber( selectionCriterion, [Start= number])
%currentItem = al:FirstItem al:FirstItem = newItem
[%count =] al:Insert( number, itemList)
%currentItem = al:Item( number) al:Item( number) = newItem
%currentItem = al:LastItem al:LastItem = newItem
%newList = [%(Arraylist Of itemType):]List( itemList)
%number = al:Maximum( method)
%item = al:MaximumItem( method)
%number = al:Minimum( method)
%item = al:MinimumItem( method)
%al = [%(Arraylist Of itemType):]New
[%item =] al:Pop
al:Print( method, [NumWidth= number], [Separator= string], [Start= number], - [MaxItems= number], [Label= string])
[%count =] al:Push( collectionItem)
[%count =] al:RemoveItem( number)
al:Sort( sortOrder)
%newList = al:SortNew( sortOrder)
%standardDev = al:StandardDeviation( method)
%newList = al:SubsetNew( selectionCriterion)
%sum = al:Sum( method)
al:Trace( method, [NumWidth= number], [Separator= string], [Start= number], - [MaxItems= number], [Label= string])
%variance = al:Variance( method)