map

Iterates over one or more collections and collects the results in a freshly allocated collection.  If all the collections are sequences, processing is performed in the natural order.

map returns a collection whose value is an instance of the type-for-copy value of collection.  The new collection is created by calling make on that type, with a size: initialization argument whose value is the number of corresponding elements in the collections.

map (\+,
#(100, 100, 200, 200),
#(1, 2, 3, 4))
⇒ #(101, 102, 203, 204)

Exported from

Modifiers

sealed

Arguments

functionAn instance of <function>.
collectionAn instance of <collection>.
#rest more-collectionsInstances of <object>.

Values

new-collectionAn instance of <collection>.
Iterates over one or more collections and collects the results in a freshly allocated collection.
Returns an appropriate type for creating mutable copies of its argument.
Returns a general instance of its first argument.
The common-dylan module.
Whenever possible, we have tried to keep the Dylan module pristine and unextended, preferring to add our extensions to separate modules or libraries.
The class of objects that can be applied to arguments.
The class of collections, aggregate data structures.
The class of all Dylan objects.