Prepend Array

Click to copy

Adds an element at the beginning of a given array.


Example: Prepend Array(array: [1, 2], item: 0) = [0, 1, 2].

Flow Connections

  • [Input] In - starts the block's execution.
  • [Output] Out - activates when the block has finished its execution.

Data Connections

  • [Input] Array (array, any type) - array to be added to.
  • [Input] Item (same type as "Array") - element to be added.
  • [Output] Result (array, same type as "Array") - result of the operation.