CreatorDocumentation 0.3.2 beta
Documentation sectionsIn this article
CREATOR / Collections

Map

map · v1

Applies a custom subgraph to every Array or List element and collects the results.

Map
Inputs
Outputs
Select a port to see its purpose and an example connection. Its reference row will highlight.

Ports and connections

The default configuration is shown below. Types and capacity can change in node properties; configure the node before connecting ports.

Port / IDTypeConnection
CollectioncollectionarraySource collection. Select the matching Array or List type in node properties.Required
OutputoutarrayThe array result of Map, available to other nodes on every sample.OutputCapacity: 64

An output can feed multiple inputs of the same type. An input has one source; Function also requires matching signatures. All connection rules →

Parameters

There are no fixed numeric parameters. Custom nodes, collections and C++ expose additional settings through their definition in the inspector.

Node properties

These settings are configured before compilation and cannot be modulated by wires.

Value type
Array or List · default Array

The Collection input accepts the selected type; collection outputs use the same type.

Body
Created with the node · default Item → Result

Double-click or choose Open node. Map receives item:Number and index:Integer. Reduce also receives accumulator:Number. The only output is Number.

How to use it

Create a subgraph with item:Number and index:Integer inputs and one Number output that doubles item; Map turns [1, 2] into [2, 4].

Things to check

Map creates its body automatically: double-click or choose Open node to edit it. Choose Array/List in the node settings; a C++ Function wire is not used here.

Check required inputs and matching types. Run Compile before auditioning; a validation failure preserves the previous working module. Troubleshooting →