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
| Name | Type | Default | Notes |
|---|---|---|---|
| array | Array<T> | — | generic |
Outputs
| Name | Type | Notes |
|---|---|---|
| element | T | generic |
| array | Array<T> | generic |
Behaviour
- A new array. The connected array is unchanged.
Errors
- The array must not be empty (nothing connected counts as empty).