Arraylist methods syntax: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Automatically generated page update)
(Automatically generated page update)
 
(13 intermediate revisions by 3 users not shown)
Line 2: Line 2:
     replaced, so any manual edits will be lost. You've been warned. -->
     replaced, so any manual edits will be lost. You've been warned. -->
{{Template:Syntax list header|class=Arraylist}}
{{Template:Syntax list header|class=Arraylist}}
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top:1px solid;

Latest revision as of 22:02, 2 March 2014

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[( [itemFunction], [NumWidth= number], [Separator= string], - [Start= number], [MaxItems= number], [Label= string])]

%average = al:Average[( [itemFunction])]

%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]) Throws ItemNotFound

%number = al:FindNextItemNumber( selectionCriterion, [Start= number])

%item = al:FindPreviousItem( selectionCriterion, [Start= number]) Throws ItemNotFound

%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[( [itemFunction])]

%item = al:MaximumItem[( [itemFunction])]

%number = al:Minimum[( [itemFunction])]

%item = al:MinimumItem[( [itemFunction])]

%al = [%(Arraylist Of itemType):]New

[%item =] al:Pop

al:Print[( [itemFunction], [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[( [itemFunction])]

%newList = al:SubsetNew( selectionCriterion)

%sum = al:Sum[( [itemFunction])]

al:Trace[( [itemFunction], [NumWidth= number], [Separator= string], - [Start= number], [MaxItems= number], [Label= string])]

%variance = al:Variance[( [itemFunction])]