NamedArraylist methods syntax

From m204wiki
Jump to navigation Jump to search

The syntax for each of the NamedArraylist 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 NamedArraylist methods.

anyNal:Audit[( [itemFunction], [NumWidth= number], [Separator= string], - [Start= number], [MaxItems= number], [Label= string], - [NameWidth= number])]

%number = anyNal:Average[( [itemFunction])]

%outNal = nal:Copy

%number = anyNal:Count

%number = anyNal:CountSubset( selectionCriterion)

%outNal = nal:DeepCopy

%currentItem = anyNal:Default anyNal:Default = newItem

%item = anyNal:FindNextItem( selectionCriterion, [Start= number]) Throws ItemNotFound

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

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

%number = anyNal:FindPreviousItemNumber( selectionCriterion, [Start= number])

%currentItem = anyNal:FirstItem anyNal:FirstItem = newItem

%name = nal:FirstItemName

%currentItem = nal:Item( string) nal:Item( string) = newItem Throws ItemNotPresent

%currentItem = anyNal:ItemByNumber( number) anyNal:ItemByNumber( number) = newItem

%currentItem = anyNal:LastItem anyNal:LastItem = newItem

%name = nal:LastItemName

%string = nal:Maximum[( [itemFunction])]

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

%string = nal:Minimum[( [itemFunction])]

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

%name = nal:NameByNumber( number)

%nal = [%(NamedArraylist Of itemType):]New

%number = nal:Number( name)

anyNal:Print[( [itemFunction], [NumWidth= number], [Separator= string], - [Start= number], [MaxItems= number], [Label= string], - [NameWidth= number])]

[%count =] nal:RemoveItem( string)

%al = anyNal:SortNew[( [sortOrder])]

%number = anyNal:StandardDeviation[( [itemFunction])]

%outNal = nal:SubsetNew( selectionCriterion)

%number = anyNal:Sum[( [itemFunction])]

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

%currentBoolean = anyNal:UseDefault anyNal:UseDefault = newBoolean

%number = anyNal:Variance[( [itemFunction])]