next up previous contents
Next: Iterating Up: Collections Previous: Properties   Contents

Making new collections

newSize:
answers a new collection of the same type that is sized to the argument.
newSizeOf:
answers a new collection of the same type that is sized to same size that the argument has.
newEmpty
answers a new collection of the same type that is sized to some small default value.
as: via newWithAll:
has extensive support in the collection types to produce copies of the first collection with the type of the second (vice versa for newWithAll: of course).



Brian Rice 2004-08-24