Vision Messages: List

| Home | List Class | Message XRef | Messages (General) |

Profile of Class List


Includes Classes: Collection, EnumeratedFunction, Function, List, SequencedCollection



Object
  | 
Function
  | 
EnumeratedFunction
  | 
Collection
  | 
SequencedCollection
  | 
  +--- List


Instances of the class List represent a group of objects which can
be viewed together as a unit.  The elements of the list are not
indexed directly.  Lists are created by sending the , anElement
message to an existing List.  The expression:  

     1, 2, 3, 4, 5

returns a List containing five elements.


Message Index

o * anObject
o + anObject
o , anObject
o - anObject
o / anObject
o all: booleanBlock
o anElement
o any: booleanBlock
o append: aList
o appendListElementsFrom: aList
o asSelf (Function)
o asSelf (EnumeratedFunction)
o asSelf (Collection)
o asSelf (SequencedCollection)
o asSelf (List)
o atO: aNumber
o at: aNumber
o at: integer put: aValue
o average
o average: aBlock
o average: aBlock withWeights: bBlock
o base0CellAtPosition:
o base1CellAtPosition:
o basicAverage:
o basicMax:
o basicMin:
o basicProduct:
o basicRankDown:usingCollector:
o basicRankUp:usingCollector:
o basicRunningTotal:usingCollector:
o basicSortDown: aBlock
o basicSortUp: aBlock
o basicTotal:
o classDescriptor (Function)
o classDescriptor (EnumeratedFunction)
o classDescriptor (Collection)
o classDescriptor (SequencedCollection)
o classDescriptor (List)
o collect: aBlock
o collect: aBlock with: input
o collectGroupsForCriteria: blocks atLevel: level in: list withKeys: keys
o collectListElementsFrom: aBlock
o compound
o compound: aBlock
o copyListElements
o correlate: blockX with: blockY
o count
o createLinks
o decileDown: aBlock
o decileDown: aBlock by: bBlock
o decileDown: aBlock by: bBlock by: cBlock
o decileDown: aBlock using: variableName
o decileUp: aBlock
o decileUp: aBlock by: bBlock
o decileUp: aBlock by: bBlock by: cBlock
o decileUp: aBlock using: variableName
o defaultInstance (Function)
o defaultInstance (EnumeratedFunction)
o defaultInstance (Collection)
o defaultInstance (SequencedCollection)
o defaultInstance (List)
o difference: aList
o display: aBlockList
o displayAcross: aBlock
o do: aBlock
o exclude: aList
o exclude: aList using: aBlock
o excludesElement: anObject
o execute: message in: class
o extend: aBlock
o extendBy: aBlock
o first: n
o gMean
o gMean: aBlock
o groupPrintUsing: aBlock
o groupedBy: aBlock
o groupedBy: block1 and: block2
o groupedBy: block in: list
o groupedBy: block intersect: list
o groupedBy: block union: list
o groupedBy: aBlock usingCollector: aBlock
o groupedBy: aBlock usingCutoffs: aList
o groupedByCriteria: aBlockList
o groupedByString: aBlock
o harmonicMean
o harmonicMean: aBlock
o harmonicMean: aBlock withWeights: bBlock
o histogram: aBlock title: aString
o includesElement: anObject
o intersect: aList
o intersect: aList using: aBlock
o isCollection
o isDefault
o isEnumeratedFunction
o isEquivalentTo: object
o isFunction
o isList
o isSequencedCollection
o iterate: block
o iterate: aBlock by: anInteger
o last: n
o linkElements
o max
o max: aBlock
o median
o median: aBlock
o mgroupedBy: aBlock
o min
o min: aBlock
o mode
o mode: aBlock
o ncount:
o new (Function)
o new (Collection)
o nonDefaults
o normalize
o normalize: aBlock
o normalize: aBlock by: bBlock
o normalize: aBlock by: bBlock by: cBlock
o numberElements
o numberElementsInReverse
o percentileDown: aBlock
o percentileDown: aBlock by: bBlock
o percentileDown: aBlock by: bBlock by: cBlock
o percentileDown: aBlock using: variableName
o percentileUp: aBlock
o percentileUp: aBlock by: bBlock
o percentileUp: aBlock by: bBlock by: cBlock
o percentileUp: aBlock using: variableName
o print
o product
o product: aBlock
o quintileDown: aBlock
o quintileDown: aBlock by: bBlock
o quintileDown: aBlock by: bBlock by: cBlock
o quintileDown: aBlock using: variableName
o quintileUp: aBlock
o quintileUp: aBlock by: bBlock
o quintileUp: aBlock by: bBlock by: cBlock
o quintileUp: aBlock using: variableName
o rankCorrelate: blockX with: blockY
o rankDown: aBlock
o rankDown: aBlock by: bBlock
o rankDown: aBlock by: bBlock by: cBlock
o rankDown: block1 usingCollector: block2
o rankUp: aBlock
o rankUp: aBlock by: bBlock
o rankUp: aBlock by: bBlock by: cBlock
o rankUp: block1 usingCollector: block2
o regress: list2
o runningAverage: aBlock
o runningTotal: aBlock
o runningTotal: block1 usingCollector: block2
o select: aBlock
o send: aBlock
o send: aBlock with: aValue
o sortDown: aBlock
o sortDownBy: block1 then: block2
o sortDownBy: block1 then: block2 then: block3
o sortDownBy: block1 then: block2 then: block3 then: block4
o sortUp: aBlock
o sortUpBy: block1 then: block2
o sortUpBy: block1 then: block2 then: block3
o sortUpBy: block1 then: block2 then: block3 then: block4
o standardize
o stdDev
o stdDev: aBlock
o tileDown: block1 tiles: aNumber
o tileDown: block using: variableName tiles: aNumber
o tileDown: block1 usingCollector: block2 tiles: aNumber
o tileUp: block1 tiles: aNumber
o tileUp: block using: variableName tiles: aNumber
o tileUp: block1 usingCollector: block2 tiles: aNumber
o toList
o total
o total: aBlock
o uniformAt0: aNumber
o uniformAt: aNumber
o union: aList
o union: aList using: aBlock
o unique
o weightedDecile: aBlock
o weightedQuintile: aBlock
o whatAmI (Function)
o whatAmI (EnumeratedFunction)
o whatAmI (Collection)
o whatAmI (SequencedCollection)
o whatAmI (List)


Messages

o *

Synopsis:
List * anObject

Description:

This message is used to perform vector multiplication between two lists or a list and a scalar value. If the supplied value is a scalar, the value is multiplied by each element in the recipient list. If the supplied value is a list, the operation is applied positionally.

Type: Method          Returns: List

Parameters:

1 - List

Also Defined At:
| DateOffset | TimeSeries | Undefined |

o +

Synopsis:
List + anObject

Description:

This message is used to perform vector addition between two lists or a list and a scalar value. If the supplied value is a scalar, the value is added to each element in the recipient list. If the supplied value is a list, the operation is applied positionally.

Type: Method          Returns: List

Parameters:

1 - List

Also Defined At:
| Date | DateOffset | TimeSeries | Undefined |

o ,

Synopsis:
List , anObject

Description:

Appends supplied element to recipient List. The , message modifies the recipient List.

Type: Primitive          Returns: List

Parameters:

1 - Object

Also Defined At:
| Object |

o -

Synopsis:
List - anObject

Description:

This message is used to perform vector subtraction between two lists or a list and a scalar value. If the supplied value is a scalar, the value is subtracted from each element in the recipient list. If the supplied value is a list, the operation is applied positionally.

Type: Method          Returns: List

Parameters:

1 - List

Also Defined At:
| Date | TimeSeries | Undefined |

o /

Synopsis:
List / anObject

Description:

This message is used to perform vector division between two lists or a list and a scalar value. If the supplied value is a scalar, the value divides each element in the recipient list. If the supplied value is a list, the operation is applied positionally.

Type: Method          Returns: List

Parameters:

1 - List

Also Defined At:
| TimeSeries | Undefined |

o all:

Synopsis:
Collection all: booleanBlock

Description:

Returns TRUE if all elements in recipient respond to supplied block with the value TRUE.

Type: Method          Returns: Boolean

Parameters:

1 - Block

o anElement

Synopsis:
Collection anElement

Description:

Extracts a single element from the recipient List. The last element in the List is returned. Useful when dealing with single element lists to strip of the last level of protocol.

Type: Method          Returns: TimeSeries

o any:

Synopsis:
Collection any: booleanBlock

Description:

Returns TRUE if any element in recipient respond to supplied block with the value TRUE.

Type: Method          Returns: Boolean

Parameters:

1 - Block

o append:

Synopsis:
Collection append: aList

Description:

Appends the supplied List to a copy of the recipient List. The original list is not altered.

Type: Method          Returns: List

Parameters:

1 - List

o appendListElementsFrom:

Synopsis:
List appendListElementsFrom: aList

Description:

Appends supplied list to the recipient list, changing the original. The original list IS altered.

Type: Method          Returns: List

Parameters:

1 - List

o asSelf

Synopsis:
Function asSelf

Description:

Returns the original object.

Type: Primitive          Returns: Function

Also Defined At:
| Block | Boolean | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | Object | OpenVision | Schema | String | TimeSeries | Undefined | Utility |

o asSelf

Synopsis:
EnumeratedFunction asSelf

Description:

Returns the original object.

Type: Primitive          Returns: EnumeratedFunction

Also Defined At:
| Block | Boolean | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | Object | OpenVision | Schema | String | TimeSeries | Undefined | Utility |

o asSelf

Synopsis:
Collection asSelf

Description:

Returns the original object.

Type: Primitive          Returns: Collection

Also Defined At:
| Block | Boolean | Classification | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | Object | OpenVision | Schema | String | TimeSeries | Undefined | Utility |

o asSelf

Synopsis:
SequencedCollection asSelf

Description:

Returns the original object.

Type: Primitive          Returns: SequencedCollection

Also Defined At:
| Block | Boolean | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | Object | OpenVision | Schema | String | TimeSeries | Undefined | Utility |

o asSelf

Synopsis:
List asSelf

Description:

Returns the original object.

Type: Primitive          Returns: List

Also Defined At:
| Block | Boolean | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | Number | Object | OpenVision | Schema | String | TimeSeries | Undefined | Utility |

o at0:

Synopsis:
List atO: aNumber

Description:

Returns the element at the supplied number, zero relative (begins counting at 0). Returns NA if number is greater than number of elements in the list.

Type: Method          Returns: Object

Parameters:

1 - Number

o at:

Synopsis:
List at: aNumber

Description:

Returns the element at the supplied position number.

Type: Method          Returns: Object

Parameters:

1 - Number

Also Defined At:
| Dictionary | String |

o at:put:

Synopsis:
List at: integer put: aValue

Description:

Stores the supplied value at the supplied integer in the recipient List, if the position exists in the list. The supplied integer must be a positive number less than or equal to the recipient's count.

Type: Method          Returns: Object

Parameters:

1 - Integer
2 - Object

Also Defined At:
| Dictionary | String |

o average

Synopsis:
Collection average

Description:

Computes the average for the collection assuming the collection contains numeric values.

Type: Method          Returns: Number

o average:

Synopsis:
Collection average: aBlock

Description:

Evaluates the formula provided in supplied Block for each element in the list and computes the average value. NA values are not included in the average.

Type: Method          Returns: Number

Parameters:

1 - Block

o average:withWeights:

Synopsis:
Collection average: aBlock withWeights: bBlock

Description:

Returns the weighted average using the formula in bBlock to weight the formula supplied in aBlock.

Type: Method          Returns: Number

Parameters:

1 - Block
2 - Block

o base0CellAtPosition:

Synopsis:
List base0CellAtPosition:

Type: Primitive          Returns: Object

Parameters:

1 - Undefined

o base1CellAtPosition:

Synopsis:
List base1CellAtPosition:

Type: Primitive          Returns: Object

Parameters:

1 - Undefined

o basicAverage:

Synopsis:
List basicAverage:

Type: Primitive          Returns: Object

Parameters:

1 - Block

Also Defined At:
| IndexedList | TimeSeries |

o basicMax:

Synopsis:
List basicMax:

Type: Primitive          Returns: Object

Parameters:

1 - Block

Also Defined At:
| IndexedList | TimeSeries |

o basicMin:

Synopsis:
List basicMin:

Type: Primitive          Returns: Object

Parameters:

1 - Block

Also Defined At:
| IndexedList | TimeSeries |

o basicProduct:

Synopsis:
List basicProduct:

Type: Primitive          Returns: Object

Parameters:

1 - Block

Also Defined At:
| IndexedList | TimeSeries |

o basicRankDown:usingCollector:

Synopsis:
List basicRankDown:usingCollector:

Type: Primitive          Returns: List

Parameters:

1 - Undefined
2 - Undefined

Also Defined At:
| IndexedList | TimeSeries |

o basicRankUp:usingCollector:

Synopsis:
List basicRankUp:usingCollector:

Type: Primitive          Returns: List

Parameters:

1 - Block
2 - Undefined

Also Defined At:
| IndexedList | TimeSeries |

o basicRunningTotal:usingCollector:

Synopsis:
List basicRunningTotal:usingCollector:

Type: Primitive          Returns: List

Parameters:

1 - Block
2 - Undefined

Also Defined At:
| IndexedList | TimeSeries |

o basicSortDown:

Synopsis:
List basicSortDown: aBlock

Description:

Evaluates the statements provided in the supplied block and sorts the list in descending order. Sort is highest to lowest for numbers. Sort is ZZZ through A for strings.

Type: Primitive          Returns: List

Parameters:

1 - Block

Also Defined At:
| IndexedList | TimeSeries |

o basicSortUp:

Synopsis:
List basicSortUp: aBlock

Description:

Evaluates the statements provided in the supplied block and sorts the list in ascending order. Sort is lowest to highest for numbers. Sort is A through Z for strings.

Type: Primitive          Returns: List

Parameters:

1 - Block

Also Defined At:
| IndexedList | TimeSeries |

o basicTotal:

Synopsis:
List basicTotal:

Type: Primitive          Returns: Object

Parameters:

1 - Block

Also Defined At:
| IndexedList | TimeSeries |

o classDescriptor

Synopsis:
Function classDescriptor

Description:

Reference to the object which describes the class. Class level information is stored here.

Type: Constant          Returns: Object

Also Defined At:
| Block | Boolean | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | Object | OpenVision | Schema | String | TimeSeries | Undefined | Utility |

o classDescriptor

Synopsis:
EnumeratedFunction classDescriptor

Description:

Reference to the object which describes the class. Class level information is stored here.

Type: Constant          Returns: Object

Also Defined At:
| Block | Boolean | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | Object | OpenVision | Schema | String | TimeSeries | Undefined | Utility |

o classDescriptor

Synopsis:
Collection classDescriptor

Description:

Reference to the object which describes the class. Class level information is stored here.

Type: Constant          Returns: Object

Also Defined At:
| Block | Boolean | Classification | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | Object | OpenVision | Schema | String | TimeSeries | Undefined | Utility |

o classDescriptor

Synopsis:
SequencedCollection classDescriptor

Description:

Reference to the object which describes the class. Class level information is stored here.

Type: Constant          Returns: Object

Also Defined At:
| Block | Boolean | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | Object | OpenVision | Schema | String | TimeSeries | Undefined | Utility |

o classDescriptor

Synopsis:
List classDescriptor

Description:

Reference to the object which describes the class. Class level information is stored here.

Type: Constant          Returns: Object

Also Defined At:
| Block | Boolean | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | Number | Object | OpenVision | Schema | String | TimeSeries | Undefined | Utility |

o collect:

Synopsis:
Collection collect: aBlock

Description:

Uses supplied block to create an extension of recipient List. The value of the block is assigned to the variable value. The returned extension responds to the value message.

Type: Method          Returns: List

Parameters:

1 - Block

Also Defined At:
| Object |

o collect:with:

Synopsis:
Collection collect: aBlock with: input

Description:

Uses supplied block to create an extension of recipient List extended by the variable 'value'. The block is evaluated using the supplied input parameter.

Type: Method          Returns: List

Parameters:

1 - Block
2 - Object

o collectGroupsForCriteria:atLevel:in:withKeys:

Synopsis:
Collection collectGroupsForCriteria: blocks atLevel: level in: list withKeys: keys

Type: Method          Returns: Object

o collectListElementsFrom:

Synopsis:
Collection collectListElementsFrom: aBlock

Description:

Evaluates the statements provided in supplied block for each element in the list and produces a new list containing these elements. Used to combine a list of lists. The supplied block must evaluate to a list. For example, the expression: 5 sequence collectListElementsFrom: [ ^self sequence ] returns the list elements 1, 1, 2, 1, 2, 3, 1, 2, 3, 4, 1, 2, 3, 4, 5

Type: Method          Returns: List

Parameters:

1 - Block

o compound

Synopsis:
Collection compound

Description:

Computes the compounded value for the collection assuming the collection contains numeric values.

Type: Method          Returns: Number

o compound:

Synopsis:
Collection compound: aBlock

Description:

Evaluates the formula provided in the supplied block for each element in the list and computes the compounded value.

Type: Method          Returns: Number

Parameters:

1 - Block

o copyListElements

Synopsis:
Collection copyListElements

Description:

Produces a copy of the recipient list. Should be used to avoid modifying the recipient List.

Type: Method          Returns: List

o correlate:with:

Synopsis:
Collection correlate: blockX with: blockY

Description:

Computes the correlation of all points in the recipient based on evaluation of the formula provided by the two supplied blocks.

Type: Method          Returns: Number

Parameters:

1 - Block
2 - Block

o count

Synopsis:
List count

Description:

Counts the number of elements in the List. Returns a non-negative integer.

Type: Primitive          Returns: Integer

Also Defined At:
| IndexedList | String | TimeSeries |

o createLinks

Synopsis:
List createLinks

Type: Method          Returns: Object

o decileDown:

Synopsis:
Collection decileDown: aBlock

Description:

Evaluates the formula provided in the supplied block for each element in the list and computes its decile (highest values = 1; lowest values = 10).

Type: Method          Returns: List

Parameters:

1 - Block

o decileDown:by:

Synopsis:
Collection decileDown: aBlock by: bBlock

Description:

Groups the recipient by the criteria in bBlock and generates a decile value for each element relative to its group. The result object is the original collection extended by the variable 'decile'.

Type: Method          Returns: Collection

Parameters:

1 - Block
2 - Block

o decileDown:by:by:

Synopsis:
Collection decileDown: aBlock by: bBlock by: cBlock

Description:

Groups the recipient by the criteria in bBlock and cBlock and generates a decile value for each element relative to its group. The result object is the original collection extended by the variable 'decile'.

Type: Method          Returns: Collection

Parameters:

1 - Block
2 - Block

o decileDown:using:

Synopsis:
Collection decileDown: aBlock using: variableName

Description:

Evaluates the formula provided in the supplied block for each element in the list and computes its decile (highest values = 1; lowest values = 10). The decile value is returned as an extension to the recipient named by the supplied variableName

Type: Method          Returns: List

Parameters:

1 - Block
2 - String

o decileUp:

Synopsis:
Collection decileUp: aBlock

Description:

Evaluates the formula provided in the supplied block for each element in the list and computes its decile (lowest values = 1; highest = 10).

Type: Method          Returns: List

Parameters:

1 - Block

o decileUp:by:

Synopsis:
Collection decileUp: aBlock by: bBlock

Description:

Groups the recipient by the criteria in bBlock and generates a decile value for each element relative to its group. The result object is the original collection extended by the variable 'decile'.

Type: Method          Returns: Collection

Parameters:

1 - Block
2 - Block

o decileUp:by:by:

Synopsis:
Collection decileUp: aBlock by: bBlock by: cBlock

Description:

Groups the recipient by the criteria in bBlock and cBlock and generates a decile value for each element relative to its group. The result object is the original collection extended by the variable 'decile'.

Type: Method          Returns: Collection

Parameters:

1 - Block
2 - Block

o decileUp:using:

Synopsis:
Collection decileUp: aBlock using: variableName

Description:

Evaluates the formula provided in the supplied block for each element in the list and computes its decile (highest values = 1; lowest values = 10). The decile value is returned as an extension to the recipient named by the supplied variableName

Type: Method          Returns: List

Parameters:

1 - Block
2 - String

o defaultInstance

Synopsis:
Function defaultInstance

Description:

Returns the default instance of the recipient object's class

Type: Constant          Returns: Function

Also Defined At:
| Block | Boolean | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | OpenVision | Schema | String | TimeSeries | Undefined | Utility |

o defaultInstance

Synopsis:
EnumeratedFunction defaultInstance

Description:

Returns the default instance of the recipient object's class

Type: Constant          Returns: EnumeratedFunction

Also Defined At:
| Block | Boolean | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | OpenVision | Schema | String | TimeSeries | Undefined | Utility |

o defaultInstance

Synopsis:
Collection defaultInstance

Description:

Returns the default instance of the recipient object's class

Type: Constant          Returns: Collection

Also Defined At:
| Block | Boolean | Classification | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | OpenVision | Schema | String | TimeSeries | Undefined | Utility |

o defaultInstance

Synopsis:
SequencedCollection defaultInstance

Description:

Returns the default instance of the recipient object's class

Type: Constant          Returns: SequencedCollection

Also Defined At:
| Block | Boolean | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | OpenVision | Schema | String | TimeSeries | Undefined | Utility |

o defaultInstance

Synopsis:
List defaultInstance

Description:

Returns the default instance of the recipient object's class

Type: Constant          Returns: List

Also Defined At:
| Block | Boolean | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | Number | OpenVision | Schema | String | TimeSeries | Undefined | Utility |

o difference:

Synopsis:
Collection difference: aList

Description:

This message returns a list of two elements: the first element contains
the list of elements that are in list 1 and not in list 2; the second
element contains the list of elements that are in list 2 and not list 1.
For example:

!diffs <- (1,2,3,4,5) difference: (3,4,5,6) ;
"In 1 not 2" print ; diffs at: 1 . do: [ print ] ; newLine print;
"In 2 not 2" print ; diffs at: 2 . do: [ print ] ;

Type: Method          Returns: List

Parameters:

1 - List

o display:

Synopsis:
List display: aBlockList

Description:

For each element in the recipient list display the list of data items specified by aBlockList. The result of this message is a report with the recipient list elements forming the rows and the data items forming the columns. All columns are formatted as 12 characters wide.

Type: Method          Returns: String

Parameters:

1 - Block

o displayAcross:

Synopsis:
List displayAcross: aBlock

Description:

Evaluates the statements provided in the supplied block for each element in the list and displays the results on one line. All columns are formatted as 12 characters wide.

Type: Method          Returns: String

Parameters:

1 - Block

o do:

Synopsis:
List do: aBlock

Description:

Evaluates the statements provided in the supplied block for each element in the list.

Type: Primitive          Returns: List

Parameters:

1 - Block

Also Defined At:
| IndexedList | Object | TimeSeries |

o exclude:

Synopsis:
Collection exclude: aList

Description:

Finds the elements in the recipient list that are NOT in the supplied list.

Type: Method          Returns: List

Parameters:

1 - List

o exclude:using:

Synopsis:
Collection exclude: aList using: aBlock

Description:

Excludes elements in aList from recipient using rules supplied by block to strip any extensions from elements before comparing for equality.

Type: Method          Returns: List

Parameters:

1 - List
2 - Block

o excludesElement:

Synopsis:
Collection excludesElement: anObject

Description:

Returns TRUE if recipient List does not include supplied object.

Type: Method          Returns: Boolean

Parameters:

1 - Object

o execute:in:

Synopsis:
List execute: message in: class

Description:

Used By DDMS ToolKit

Type: Method          Returns: Object

Parameters:

1 - Undefined
2 - Undefined

Also Defined At:
| Object |

o extend:

Synopsis:
List extend: aBlock

Description:

See 'extendBy:' message

Type: Primitive          Returns: List

Parameters:

1 - Block

Also Defined At:
| Object |

o extendBy:

Synopsis:
List extendBy: aBlock

Description:

Evaluates the supplied block for each element in the list, where the supplied block specifies a set of new variables to which each element in the list can respond.

Type: Primitive          Returns: List

Parameters:

1 - Block

Also Defined At:
| IndexedList | Object | TimeSeries |

o first:

Synopsis:
Collection first: n

Description:

Selects the first 'n' non-NA, non-Default elements from the recipient.

Type: Method          Returns: Collection

Parameters:

1 - Integer

o gMean

Synopsis:
Collection gMean

Description:

Computes the geometric mean of the time series

Type: Method          Returns: Number

o gMean:

Synopsis:
Collection gMean: aBlock

Description:

Evaluates the formula provided in supplied Block for each element in the list and computes the geometric mean.

Type: Method          Returns: Number

Parameters:

1 - Block

o groupPrintUsing:

Synopsis:
Collection groupPrintUsing: aBlock

Description:

Groups recipient List by supplied block and displays a report showing the count in each group.

Type: Method          Returns: Object

Parameters:

1 - Block

o groupedBy:

Synopsis:
Collection groupedBy: aBlock

Description:

Groups the recipient list based on the criteria specified by the supplied block. After the groupedBy: message is sent, each element in the resultant list responds to the message groupList which returns the list of elements in that group.

Type: Method          Returns: List

Parameters:

1 - Block

o groupedBy:and:

Synopsis:
Collection groupedBy: block1 and: block2

Description:

Groups the recipient list based on the criteria specified by the two supplied criteria. Each element in the resultant list responds to the message 'groupList' which returns the list of elements in that group. The value of each group is defined as the string formed by: first criteria value.second critria value

Type: Method          Returns: List

Parameters:

1 - Block
2 - Block

o groupedBy:in:

Synopsis:
Collection groupedBy: block in: list

Description:

Groups the recipient collection based on the criteria specified by supplied blocks. The resultant list contains one element for each value that is included in supplied list. Unlike 'groupedBy:union:', groups that do not appear in supplied list are eliminated.

Type: Method          Returns: Collection

Parameters:

1 - List

o groupedBy:intersect:

Synopsis:
Collection groupedBy: block intersect: list

Description:

Groups the recipient collection based on the criteria specified by supplied blocks. The resultant list contains one element for each value that is included in both the supplied list AND the result of applying the supplied block to the recipient collection.

Type: Method          Returns: Collection

Parameters:

1 - List

o groupedBy:union:

Synopsis:
Collection groupedBy: block union: list

Description:

Groups the recipient collection based on the criteria specified by supplied blocks. The resultant list contains one element for each value that is included in supplied list OR that results from applying the supplied block to the recipient collection. For example, companyList groupedBy: [ country ] union: Country masterList will return a list with one entry for each Country including countries not represented in 'companyList' (where groupList count will be 0.

Type: Method          Returns: Collection

Parameters:

1 - List

o groupedBy:usingCollector:

Synopsis:
List groupedBy: aBlock usingCollector: aBlock

Description:

Groups the recipient list based on the criteria specified by block1. The second block provides the name of the extension. The 'groupedBy:' message is implemented using groupList as the collector.

Type: Primitive          Returns: List

Parameters:

1 - Block
2 - Block

Also Defined At:
| IndexedList | TimeSeries |

o groupedBy:usingCutoffs:

Synopsis:
Collection groupedBy: aBlock usingCutoffs: aList

Description:

Groups recipient List into partitions specified in aList, based on criteria specified in aBlock. The supplied list should be a list of Numbers.

Type: Method          Returns: List

Parameters:

1 - Block
2 - List

o groupedByCriteria:

Synopsis:
Collection groupedByCriteria: aBlockList

Description:

Groups the recipient collection based on the criteria specified by supplied list of blocks. The resultant list contains one element for each combination of values present from processing the supplied blocks. Each element in the resultant list responds to the message 'keyList' which is the list of values associated with this group, one per supplied block. Each element in the resultant list responds to the message 'groupList' which returns the list of elements in the specific combination of block values. For example, Company masterList groupedByCriteria: [ sector ] , [ country ] returns a list of sector/country pairs. To display the name of each key and the group count, use: Company masterList groupedByCriteria: [ sector ] , [ country ] . do: [ keyList do: [ name print: 20 ] ; #-- print keys groupList count printNL ; #-- print count ] ;

Type: Method          Returns: Collection

Parameters:

1 - List

o groupedByString:

Synopsis:
Collection groupedByString: aBlock

Description:

Used as an alternative to 'groupedBy:' when the supplied block returns string values, this version guarantees that strings with identical content will be in the same group. The standard 'groupedBy:' will place unique string in separate groups even if they have identical content.

Type: Method          Returns: List

Parameters:

1 - Block

o harmonicMean

Synopsis:
Collection harmonicMean

Description:

Computes the harmonicMean for the collection assuming the collection contains numeric values.

Type: Method          Returns: Number

o harmonicMean:

Synopsis:
Collection harmonicMean: aBlock

Description:

Evaluates the formula provided in supplied Block for each element in the list and computes the harmonicMean value.

Type: Method          Returns: Number

Parameters:

1 - Block

o harmonicMean:withWeights:

Synopsis:
Collection harmonicMean: aBlock withWeights: bBlock

Description:

Returns the weighted harmonic mean using the formula in bBlock to weight the value supplied in aBlock.

Type: Method          Returns: Number

Parameters:

1 - Block
2 - Block

o histogram:title:

Synopsis:
Collection histogram: aBlock title: aString

Description:

Produces a distribution chart based on each element's value of the supplied block.

Type: Method          Returns: Object

Parameters:

1 - Block
2 - String

o includesElement:

Synopsis:
Collection includesElement: anObject

Description:

Returns TRUE if the recipient list does include the supplied object.

Type: Method          Returns: Boolean

Parameters:

1 - Object

o intersect:

Synopsis:
Collection intersect: aList

Description:

Finds the elements that are in BOTH the recipient list and supplied list

Type: Method          Returns: List

Parameters:

1 - List

o intersect:using:

Synopsis:
Collection intersect: aList using: aBlock

Description:

Finds intersection of elements in aList and recipient using rules supplied by block to strip any extensions from elements before comparing for equality.

Type: Method          Returns: List

Parameters:

1 - List
2 - Block

o isCollection

Synopsis:
Collection isCollection

Description:

Returns a TRUE value when sent to any collection.

Type: Constant          Returns: TRUE

Also Defined At:
| Object |

o isDefault

Synopsis:
Collection isDefault

Description:

Returns TRUE if recipient collection is empty.

Type: Method          Returns: TRUE

Also Defined At:
| Date | Object | String | Undefined |

o isEnumeratedFunction

Synopsis:
EnumeratedFunction isEnumeratedFunction

Description:

Returns a TRUE value when sent to any EnumeratedFunction.

Type: Constant          Returns: TRUE

Also Defined At:
| Object |

o isEquivalentTo:

Synopsis:
Collection isEquivalentTo: object

Description:

Returns TRUE if the recipient collection contains the same elements as the supplied collection.

Type: Method          Returns: Boolean

Parameters:

1 - Object

Also Defined At:
| Object |

o isFunction

Synopsis:
Function isFunction

Description:

Returns a TRUE value when sent to any Function.

Type: Constant          Returns: TRUE

Also Defined At:
| Object |

o isList

Synopsis:
List isList

Description:

Returns a TRUE value when sent to any List.

Type: Constant          Returns: TRUE

Also Defined At:
| Object |

o isSequencedCollection

Synopsis:
SequencedCollection isSequencedCollection

Description:

Returns a TRUE value when sent to any SequencedCollection.

Type: Constant          Returns: TRUE

Also Defined At:
| Object |

o iterate:

Synopsis:
Collection iterate: block

Description:

This message is used to consider each element in the recipient collection or date range one at a time in sequential order. Unlike the 'do:' message which operates in parallel, this message works sequentially and may be much slower. It is useful in cases where you need to use the results of a prior element in each iteration and where the size of the structures generated by parallel execution consumes more memorry resource than desired.

Type: Method          Returns: Collection

Parameters:

1 - Block

Also Defined At:
| DateRange | TimeSeries |

o iterate:by:

Synopsis:
List iterate: aBlock by: anInteger

Description:

Similar to the 'do:' message. The supplied integer is used to process recipient List as a series of sublists.

Type: Primitive          Returns: Object

Parameters:

1 - Block
2 - Integer

Also Defined At:
| IndexedList | TimeSeries |

o last:

Synopsis:
Collection last: n

Description:

Selects the last 'n' non-NA, non-Default elements from the recipient.

Type: Method          Returns: Collection

Parameters:

1 - Integer

o linkElements

Synopsis:
Collection linkElements

Description:

Extends each element in the collectionby the variables 'prior' and 'next'
which corresponds to the elements in the recipient lilst that are before
and after each element. For example:

5 sequence linkElements
do: [ print ; prior print ; next printNL ] ;

Type: Method          Returns: Collection

o max

Synopsis:
Collection max

Description:

Computes the maximum for the collection assuming the collection contains numeric values.

Type: Method          Returns: Number

o max:

Synopsis:
Collection max: aBlock

Description:

Evaluates the formula provided in the supplied block for each element in the list and returns the maximum value.

Type: Method          Returns: Number

Parameters:

1 - Block

Also Defined At:
| Undefined |

o median

Synopsis:
Collection median

Description:

Computes the median value of the recipient time series.

Type: Method          Returns: Number

o median:

Synopsis:
Collection median: aBlock

Description:

Evaluates the formula provided in the supplied block for each element in the list and computes the median (middle) value. NA values are not included.

Type: Method          Returns: Number

Parameters:

1 - Block

o mgroupedBy:

Synopsis:
Collection mgroupedBy: aBlock

Description:

Groups the recipient list using result of block, where supplied block should
generate a list as its result. Elements in the original list will be
included in one or more groupLists. For example, if instances of the class
EntityCategory respond to the message 'entities' with the list of entities
included in the instance, then the expression:

EntityCategory masterList mgroupedBy: [ entities ]

returns a list of the entities included in any EntityCategory where each
element of this new list responds to the 'groupList' message with the
list of EntityCategories that include the element.

Type: Method          Returns: List

Parameters:

1 - Block

o min

Synopsis:
Collection min

Description:

Computes the minimum for the collection assuming the collection contains numeric values.

Type: Method          Returns: Number

o min:

Synopsis:
Collection min: aBlock

Description:

Evaluates the formula provided in the supplied block for each element in the list and returns the minimum value.

Type: Method          Returns: Number

Parameters:

1 - Block

Also Defined At:
| Undefined |

o mode

Synopsis:
Collection mode

Description:

Computes the mode for the collection assuming the collection contains numeric values.

Type: Method          Returns: Number

o mode:

Synopsis:
Collection mode: aBlock

Description:

Evaluates the formula provided in aBlock for each element in the list and computes the mode (most frequently occurring value). NA values are not included.

Type: Method          Returns: Number

Parameters:

1 - Block

o ncount:

Synopsis:
List ncount:

Type: Primitive          Returns: Object

Parameters:

1 - Undefined

Also Defined At:
| IndexedList | TimeSeries |

o new

Synopsis:
Function new

Description:

Disables the 'new' message.

Type: Method          Returns: Function

Also Defined At:
| Boolean | Collection | DateRange | Dictionary | Object | Undefined |

o new

Synopsis:
Collection new

Description:

Creates a new instance of the recipient object's class.

Type: Method          Returns: Collection

Also Defined At:
| Boolean | DateRange | Dictionary | Object | Undefined |

o nonDefaults

Synopsis:
Collection nonDefaults

Description:

Selects any element in the recipient collection that is not a default.

Type: Method          Returns: Collection

o normalize

Synopsis:
Collection normalize

Description:

Returns the recipient extended by the property 'norm' assuming the recipient is a collectin of numbers.

Type: Method          Returns: Collection

Parameters:

1 - Block

o normalize:

Synopsis:
Collection normalize: aBlock

Description:

Evaluates the formula provided in the supplied block for each element in the collection and computes its normalized value based on the mean and standard deviation of the collection. Returns the recipient extended by the property 'norm'.

Type: Method          Returns: Collection

Parameters:

1 - Block

o normalize:by:

Synopsis:
Collection normalize: aBlock by: bBlock

Description:

Groups the recipient by the criteria in bBlock and generates a normalized
value for each element relative to its group. The result object is the original
collection extended by the variable 'norm'. For example:
Company masterList normalize: [ sales ] by: [ country ]

Type: Method          Returns: Collection

Parameters:

1 - Block
2 - Block

o normalize:by:by:

Synopsis:
Collection normalize: aBlock by: bBlock by: cBlock

Description:

Groups the recipient by the criteria in bBlock and cBlock and generates a
normalized value for each element relative to its group. The result object
is the original collection extended by the variable 'norm'. For example:
Company masterList
normalize: [ sales ] by: [ country ] by: [ industry ]

Type: Method          Returns: Collection

Parameters:

1 - Block
2 - Block

o numberElements

Synopsis:
Collection numberElements

Description:

Extends each element in the list by the variable 'position' which corresponds to its position number in the list.

Type: Method          Returns: Collection

o numberElementsInReverse

Synopsis:
Collection numberElementsInReverse

Description:

Extends each element in the list by the variable 'position' which corresponds to its position number in the list when the list is sorted in reverse order.

Type: Method          Returns: Collection

o percentileDown:

Synopsis:
Collection percentileDown: aBlock

Description:

Evaluates the formula provided in the supplied block for each element in the list and computes its percentile (highest values = 1; lowest values = 100).

Type: Method          Returns: List

Parameters:

1 - Block

o percentileDown:by:

Synopsis:
Collection percentileDown: aBlock by: bBlock

Description:

Groups the recipient by the criteria in bBlock and generates a percentile value for each element relative to its group. The result object is the original collection extended by the variable 'percentile'.

Type: Method          Returns: Collection

Parameters:

1 - Block
2 - Block

o percentileDown:by:by:

Synopsis:
Collection percentileDown: aBlock by: bBlock by: cBlock

Description:

Groups the recipient by the criteria in bBlock and cBlock and generates a percentile value for each element relative to its group. The result object is the original collection extended by the variable 'percentile'.

Type: Method          Returns: Collection

Parameters:

1 - Block
2 - Block

o percentileDown:using:

Synopsis:
Collection percentileDown: aBlock using: variableName

Description:

Evaluates the formula provided in the supplied block for each element in the list and computes its percentile (highest values = 1; lowest values = 100). The percentile value is returned as an extension to the recipient named by the supplied variableName

Type: Method          Returns: List

Parameters:

1 - Block
2 - String

o percentileUp:

Synopsis:
Collection percentileUp: aBlock

Description:

Evaluates the formula provided in the supplied block for each element in the list and computes its percentile (lowest values = 1; highest = 100).

Type: Method          Returns: List

Parameters:

1 - Block

o percentileUp:by:

Synopsis:
Collection percentileUp: aBlock by: bBlock

Description:

Groups the recipient by the criteria in bBlock and generates a percentile value for each element relative to its group. The result object is the original collection extended by the variable 'percentile'.

Type: Method          Returns: Collection

Parameters:

1 - Block
2 - Block

o percentileUp:by:by:

Synopsis:
Collection percentileUp: aBlock by: bBlock by: cBlock

Description:

Groups the recipient by the criteria in bBlock and cBlock and generates a percentile value for each element relative to its group. The result object is the original collection extended by the variable 'percentile'.

Type: Method          Returns: Collection

Parameters:

1 - Block
2 - Block

o percentileUp:using:

Synopsis:
Collection percentileUp: aBlock using: variableName

Description:

Evaluates the formula provided in the supplied block for each element in the list and computes its percentile (lowest values = 1; highest values = 100). The percentile value is returned as an extension to the recipient named by the supplied variableName

Type: Method          Returns: List

Parameters:

1 - Block
2 - String

o print

Synopsis:
List print

Description:

Redefines the standard print message.

Type: Method          Returns: List

Also Defined At:
| Block | Date | DateOffset | DateRange | Entity | IndexedList | Object | String | TimeSeries | Undefined |

o product

Synopsis:
Collection product

Description:

Computes the product for the collection assuming the collection contains numeric values.

Type: Method          Returns: Number

o product:

Synopsis:
Collection product: aBlock

Description:

Evaluates the formula provided in the supplied block for each element in the list and computes the product of the values.

Type: Method          Returns: Number

Parameters:

1 - Block

o quintileDown:

Synopsis:
Collection quintileDown: aBlock

Description:

Evaluates the formula provided in aBlock for each element in the list and computes its quintile (highest values = 1; lowest values = 5)

Type: Method          Returns: List

Parameters:

1 - Block

o quintileDown:by:

Synopsis:
Collection quintileDown: aBlock by: bBlock

Description:

Groups the recipient by the criteria in bBlock and generates a quintile value for each element relative to its group. The result object is the original collection extended by the variable 'quintile'.

Type: Method          Returns: Collection

Parameters:

1 - Block
2 - Block

o quintileDown:by:by:

Synopsis:
Collection quintileDown: aBlock by: bBlock by: cBlock

Description:

Groups the recipient by the criteria in bBlock and cBlock and generates a quintile value for each element relative to its group. The result object is the original collection extended by the variable 'quintile'.

Type: Method          Returns: Collection

Parameters:

1 - Block
2 - Block

o quintileDown:using:

Synopsis:
Collection quintileDown: aBlock using: variableName

Description:

Evaluates the formula provided in the supplied block for each element in the list and computes its quintile (highest values = 1; lowest values = 5). The quintile value is returned as an extension to the recipient named by the supplied variableName

Type: Method          Returns: List

Parameters:

1 - Block
2 - String

o quintileUp:

Synopsis:
Collection quintileUp: aBlock

Description:

Evaluates the formula provided in aBlock for each element in the list and computes its quintile (lowest values = 1; highest = 5).

Type: Method          Returns: List

Parameters:

1 - Block

o quintileUp:by:

Synopsis:
Collection quintileUp: aBlock by: bBlock

Description:

Groups the recipient by the criteria in bBlock and generates a quintile value for each element relative to its group. The result object is the original collection extended by the variable 'quintile'.

Type: Method          Returns: Collection

Parameters:

1 - Block
2 - Block

o quintileUp:by:by:

Synopsis:
Collection quintileUp: aBlock by: bBlock by: cBlock

Description:

Groups the recipient by the criteria in bBlock and cBlock and generates a quintile value for each element relative to its group. The result object is the original collection extended by the variable 'quintile'.

Type: Method          Returns: Collection

Parameters:

1 - Block
2 - Block

o quintileUp:using:

Synopsis:
Collection quintileUp: aBlock using: variableName

Description:

Evaluates the formula provided in the supplied block for each element in the list and computes its quintile (lowest values = 1; highest values = 5). The quintile value is returned as an extension to the recipient named by the supplied variableName

Type: Method          Returns: List

Parameters:

1 - Block
2 - String

o rankCorrelate:with:

Synopsis:
Collection rankCorrelate: blockX with: blockY

Description:

Computes the correlation between the relative ranks of the data items defined by the two blocks.

Type: Method          Returns: Number

Parameters:

1 - Block
2 - Block

o rankDown:

Synopsis:
Collection rankDown: aBlock

Description:

Evaluates the formula provided in the supplied block for each element in the list and computes its rank (highest value = 1). Returns the recipient list extended by the property 'rank'.

Type: Method          Returns: List

Parameters:

1 - Block

o rankDown:by:

Synopsis:
Collection rankDown: aBlock by: bBlock

Description:

Groups the recipient by the criteria in bBlock and generates a rank value for each element relative to its group. The result object is the original collection extended by the variable 'rank'.

Type: Method          Returns: Collection

Parameters:

1 - Block
2 - Block

o rankDown:by:by:

Synopsis:
Collection rankDown: aBlock by: bBlock by: cBlock

Description:

Groups the recipient by the criteria in bBlock and cBlock and generates a rank value for each element relative to its group. The result object is the original collection extended by the variable 'rank'.

Type: Method          Returns: Collection

Parameters:

1 - Block
2 - Block

o rankDown:usingCollector:

Synopsis:
Collection rankDown: block1 usingCollector: block2

Description:

Ranks down the recipient List based on the criteria specified by block1. The second block provides the name of the extension.

Type: Method          Returns: List

Parameters:

1 - Block
2 - Block

o rankUp:

Synopsis:
Collection rankUp: aBlock

Description:

Evaluates the formula provided in the supplied block for each element in the list and computes its rank (lowest value = 1). Returns a copy of the recipient list extended by the property 'rank'.

Type: Method          Returns: List

Parameters:

1 - Block

o rankUp:by:

Synopsis:
Collection rankUp: aBlock by: bBlock

Description:

Groups the recipient by the criteria in bBlock and generates a rank value for each element relative to its group. The result object is the original collection extended by the variable 'rank'.

Type: Method          Returns: Collection

Parameters:

1 - Block
2 - Block

o rankUp:by:by:

Synopsis:
Collection rankUp: aBlock by: bBlock by: cBlock

Description:

Groups the recipient by the criteria in bBlock and cBlock and generates a rank value for each element relative to its group. The result object is the original collection extended by the variable 'rank'.

Type: Method          Returns: Collection

Parameters:

1 - Block
2 - Block

o rankUp:usingCollector:

Synopsis:
Collection rankUp: block1 usingCollector: block2

Description:

Ranks up the recipient List based on the criteria specified by block1. The second block provides the name of the extension.

Type: Method          Returns: List

Parameters:

1 - Block
2 - Block

o regress:

Synopsis:
Collection regress: list2

Description:

Performs a standard linear regression between the recipient collection
(the dependent variable) and the supplied parameter (the independent
variable). The returned object responds to the messages 'beta', 'alpha',
'pearson', 'rsq', and 'stdErr'. If either collection contains non-numeric
values or the two collections are not the same size, the returned values will
be NA. For example:

(2,3,9,1,8,7,5) regress: (6,5,11,7,5,4,4) .
do: [ beta print ; alpha print ;
pearson print ; rsq print ; stdErr printNL ;
] ;

runs the regression and displays the results of the various computations.

Type: Method          Returns: Object

Parameters:

1 - Collection

o runningAverage:

Synopsis:
Collection runningAverage: aBlock

Description:

Extends each element in the list by the variable 'runningAverage' which is the computed running average for the element based on the supplied block.

Type: Method          Returns: List

Parameters:

1 - Block

o runningTotal:

Synopsis:
Collection runningTotal: aBlock

Description:

Computes the running total for each element in the list based on the supplied block.

Type: Method          Returns: List

Parameters:

1 - Block

o runningTotal:usingCollector:

Synopsis:
Collection runningTotal: block1 usingCollector: block2

Description:

Computes the running total for the recipient timeSeries based on the criteria specified by block1. The second block provides the name of the extension.

Type: Method          Returns: TimeSeries

Parameters:

1 - Block
2 - Block

o select:

Synopsis:
List select: aBlock

Description:

Evaluates the statements provided in the supplied block for each element in the list and selects those elements that evaluate to TRUE.

Type: Primitive          Returns: List

Parameters:

1 - Block

Also Defined At:
| IndexedList | TimeSeries |

o send:

Synopsis:
List send: aBlock

Description:

Returns a list that contains the result of evaluating the statements provided in the supplied block for each element in the recipient. The List returned has the same number of elements as the recipient, with each element being the result of evaluating the block.

Type: Primitive          Returns: List

Parameters:

1 - Block

Also Defined At:
| IndexedList | Object | TimeSeries |

o send:with:

Synopsis:
Collection send: aBlock with: aValue

Description:

Sends the block to each element of the recipient. The block is evaluated with aValue as a parameter

Type: Method          Returns: List

Parameters:

1 - Block
2 - Object

Also Defined At:
| Object |

o sortDown:

Synopsis:
Collection sortDown: aBlock

Description:

Evaluates the statements provided in the supplied block and sorts the list in descending order. Sort is highest to lowest for numbers. Sort is ZZZ through A for strings.

Type: Method          Returns: List

Parameters:

1 - Block

o sortDownBy:then:

Synopsis:
Collection sortDownBy: block1 then: block2

Description:

Two-level descending sort.

Type: Method          Returns: List

Parameters:

1 - Block
2 - Block

o sortDownBy:then:then:

Synopsis:
Collection sortDownBy: block1 then: block2 then: block3

Description:

Three-level descending sort.

Type: Method          Returns: List

Parameters:

1 - Block
2 - Block
3 - Block

o sortDownBy:then:then:then:

Synopsis:
Collection sortDownBy: block1 then: block2 then: block3 then: block4

Description:

Four-level descending sort.

Type: Method          Returns: List

Parameters:

1 - Block
2 - Block
3 - Block
4 - Block

o sortUp:

Synopsis:
Collection sortUp: aBlock

Description:

Evaluates the statements provided in the supplied block and sorts the list in ascending order. Sort is lowest to highest for numbers. Sort is A through Z for strings.

Type: Method          Returns: List

Parameters:

1 - Block

o sortUpBy:then:

Synopsis:
Collection sortUpBy: block1 then: block2

Description:

Two-level ascending sort.

Type: Method          Returns: List

Parameters:

1 - Block
2 - Block

o sortUpBy:then:then:

Synopsis:
Collection sortUpBy: block1 then: block2 then: block3

Description:

Three-level ascending sort.

Type: Method          Returns: List

Parameters:

1 - Block
2 - Block
3 - Block

o sortUpBy:then:then:then:

Synopsis:
Collection sortUpBy: block1 then: block2 then: block3 then: block4

Description:

Four-level ascending sort.

Type: Method          Returns: List

Parameters:

1 - Block
2 - Block
3 - Block
4 - Block

o standardize

Synopsis:
Collection standardize

Description:

Strips off one layer of extension from recipient.

Type: Method          Returns: List

o stdDev

Synopsis:
Collection stdDev

Description:

Computes the standard deviation of the values in the recipient time series.

Type: Method          Returns: Number

o stdDev:

Synopsis:
Collection stdDev: aBlock

Description:

Evaluates the formula provided in aBlock for each element in the list and computes the standard deviation of the values.

Type: Method          Returns: Number

Parameters:

1 - Block

o tileDown:tiles:

Synopsis:
Collection tileDown: block1 tiles: aNumber

Description:

Divides recipient list into number of tiles specified based on criteria provided in block1; extends recipient by its tile value with the extension 'tile'.

Type: Method          Returns: Collection

Parameters:

1 - Block
2 - Number

o tileDown:using:tiles:

Synopsis:
Collection tileDown: block using: variableName tiles: aNumber

Description:

Divides recipient list into number of tiles specified based on criteria provided in block; extends recipient by its tile value with the extension being named by the string provided in variableName.

Type: Method          Returns: List

Parameters:

1 - Block
2 - String
3 - Number

o tileDown:usingCollector:tiles:

Synopsis:
Collection tileDown: block1 usingCollector: block2 tiles: aNumber

Description:

Divides recipient list into number of tiles specified based on criteria provided in block1; extends recipient by its tile value with the extension being named by the collector provided in block2.

Type: Method          Returns: List

Parameters:

1 - Block
2 - Block
3 - Number

o tileUp:tiles:

Synopsis:
Collection tileUp: block1 tiles: aNumber

Description:

Divides recipient list into number of tiles specified based on criteria provided in block1; extends recipient by its tile value with the extension 'tile'.

Type: Method          Returns: Collection

Parameters:

1 - Block
2 - Number

o tileUp:using:tiles:

Synopsis:
Collection tileUp: block using: variableName tiles: aNumber

Description:

Divides recipient list into number of tiles specified based on criteria provided in block; extends recipient by its tile value with the extension being named by the string provided in variableName.

Type: Method          Returns: List

Parameters:

1 - Block
2 - String
3 - Number

o tileUp:usingCollector:tiles:

Synopsis:
Collection tileUp: block1 usingCollector: block2 tiles: aNumber

Description:

Divides recipient list into number of tiles specified based on criteria provided in block1; extends recipient by its tile value with the extension being named by the collector provided in block2.

Type: Method          Returns: List

Parameters:

1 - Block
2 - Block
3 - Number

o toList

Synopsis:
List toList

Description:

Returns the recipient List.

Type: Method          Returns: List

Also Defined At:
| IndexedList | String | TimeSeries |

o total

Synopsis:
Collection total

Description:

Computes the sum for the collection assuming the collection contains numeric values.

Type: Method          Returns: Number

o total:

Synopsis:
Collection total: aBlock

Description:

Evaluates the formula provided in the supplied block for each element in the list and computes the total value.

Type: Method          Returns: Number

Parameters:

1 - Block

o uniformAt0:

Synopsis:
List uniformAt0: aNumber

Description:

Returns the element at the supplied number, begins counting at zero (0 relative). If supplied number is greater than the number of elements in the list, the first element is returned.

Type: Method          Returns: Object

Parameters:

1 - Number

o uniformAt:

Synopsis:
List uniformAt: aNumber

Description:

Returns the element at the supplied number. If supplied number is greater than the number of elements in the list, the first element is returned.

Type: Method          Returns: Object

Parameters:

1 - Number

Also Defined At:
| Dictionary |

o union:

Synopsis:
Collection union: aList

Description:

Finds the elements that are in EITHER or BOTH the recipient list and aList. Only unique elements are returned.

Type: Method          Returns: List

Parameters:

1 - List

o union:using:

Synopsis:
Collection union: aList using: aBlock

Description:

Finds union of elements in aList and recipient using rules supplied by block to strip any extensions from elements before comparing for equality.

Type: Method          Returns: List

Parameters:

1 - List
2 - Block

o unique

Synopsis:
Collection unique

Description:

Finds the unique elements in the list.

Type: Method          Returns: List

o weightedDecile:

Synopsis:
Collection weightedDecile: aBlock

Description:

Evaluates the formula provided in aBlock for each element in the list and computes its weighted decile (lowest values = 1; highest values = 10). The result is each decile contains approximately the same total value for the block provided. The recipient list is returned sorted from lowest to highest based on supplied Block.

Type: Method          Returns: List

Parameters:

1 - Block

o weightedQuintile:

Synopsis:
Collection weightedQuintile: aBlock

Description:

Evaluates the formula provided in the supplied block for each element in the list and computes its weighted quintile (lowest values = 1; highest values = 5). The result is each quintile contains approximately the same total value for the block provided. The recipient list is returned sorted from lowest to highest based on the supplied block

Type: Method          Returns: List

Parameters:

1 - Block

o whatAmI

Synopsis:
Function whatAmI

Description:

Returns the string 'Function'.

Type: Constant          Returns: String

Also Defined At:
| Block | Boolean | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | Object | OpenVision | Schema | String | TimeSeries | Undefined | Utility |

o whatAmI

Synopsis:
EnumeratedFunction whatAmI

Description:

Returns the string 'EnumeratedFunction'.

Type: Constant          Returns: String

Also Defined At:
| Block | Boolean | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | Object | OpenVision | Schema | String | TimeSeries | Undefined | Utility |

o whatAmI

Synopsis:
Collection whatAmI

Description:

Returns the string 'Collection'.

Type: Constant          Returns: String

Also Defined At:
| Block | Boolean | Classification | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | Object | OpenVision | Schema | String | TimeSeries | Undefined | Utility |

o whatAmI

Synopsis:
SequencedCollection whatAmI

Description:

Returns the string 'SequencedCollection'.

Type: Constant          Returns: String

Also Defined At:
| Block | Boolean | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | Object | OpenVision | Schema | String | TimeSeries | Undefined | Utility |

o whatAmI

Synopsis:
List whatAmI

Description:

Returns the string 'List'.

Type: Constant          Returns: String

Also Defined At:
| Block | Boolean | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | Number | Object | OpenVision | Schema | String | TimeSeries | Undefined | Utility |