Pull

Takes the element at an index out of an array.

Node id array/pull

The Pull node has two outputs: element, the element of array at index, and array, a new array with every other element, in order.

Inputs

NameTypeDefaultNotes
arrayArray<T>—generic
indexnumber0

Outputs

NameTypeNotes
elementTgeneric
arrayArray<T>generic

Behaviour

  • Indices work as in Get: the first element is at 0, and negative indices count from the end (-1 is the last element).
  • A new array. The connected array is unchanged.

Errors

  • index must be a whole number, inside the array (as for Get). An empty array has no element to pull.
  • Get: reads the element without removing it.
  • Shift and Pop: take out the first or the last element.
  • Slice: takes out a whole part of the array.
© 2026 Wirepaint