The asdk.algorithm.Counting
class provides static functions for counting the number of elements in a collection
that meet a certain condition. The primary count( collection : Collection, valueObj )
method will count the number
of elements within a collection that are equal to the valueObj parameter. The example below counts the number of 1s, 2s, and 3s
in the specified ArrayList collection:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
var numbers:asdk.Collection = new asdk.ArrayList(); |