flat map

This block is part of the array group and was last modified in core v10.4.28.

Type Selection Required

This block requires you to select the data type you want to work with. You must manually select the type using the type selector modal. To access the modal, click the white button on the block.

flat map v10.4.28

Executes the provided function on every element in the array and returns as a flat array.

In pins 1
  • Array required
    array

    The input array to be processed.

Out pins 2
  • Flat Array
    array

    The resulting flat array after applying the function.

  • Iterator
    execute_function

    The function to be applied to each element in the array.

Runs the iterator callback per item (index, value) and appends the value of EVERY return pin of the callback, in pin order, so one call can contribute several elements to the output. Null return values and failed calls contribute nothing. With no callback wired the input array passes through UNCHANGED; a missing or non-array input yields an empty array.

A typical wiring for flat map: the function out pin wires to an execute block.

Studio canvas example for the flat map block: typical wiring for flat map.

Version history

Introduced in v10.4.28.


Back to array Return to the main group to view all sub-groups Back to array Return to the group to view all blocks within this group