Shift

Takes the first element out of an array.

Node id array/shift

The Shift node has two outputs: element, the first element of array, and array, a new array with the rest.

Inputs

NameTypeDefaultNotes
arrayArray<T>—generic

Outputs

NameTypeNotes
elementTgeneric
arrayArray<T>generic

Behaviour

  • A new array. The connected array is unchanged.

Errors

  • The array must not be empty (nothing connected counts as empty).
  • Unshift: adds an element at the start.
  • Pop: takes out the last element.
  • Pull: takes out the element at any index.
© 2026 Wirepaint