Previouscapacity Up

Collection Method collect

Returns a new collection of the same species as this collection. aMessage is a Callback to a method which expects an element as a parameter and returns 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.

Using Parameters
lnkmessage OBJECT
Returning Parameter
anewcollection OBJECT