sequencedcollection Method collect
Return a new collection of the same species as this collection.
aMessage should be a CallBack pointing to a method which
expects an element as a parameter and will return an element of
the same type as the elements in this collection.
"collect" passes each element of the collection to the CallBack.
Each element returned by the CallBack is placed in the new
collection.
For more information see the topic Collection Iterator Methods
in the on-line documentation.
Using Parameters
Returning Parameter