Skip to content

Accumulation Tail

Returns the tail of an accumulation by removing its first element. If the accumulation has zero or one item, it outputs an empty accumulation. Designed to work safely, returning an empty accumulation on invalid input.
Preview

Usage

Use when you need to process all elements of an accumulation except the first, such as in recursive or iterative list processing. Commonly paired with Accumulate (to build the list) and Accumulation Head (to read the first item) for head/tail workflows.

Inputs

FieldRequiredTypeDescriptionExample
accumulationTrueACCUMULATIONThe accumulation object to slice. It represents a sequence collected across steps.An ACCUMULATION produced by Accumulate or List to Accumulation

Outputs

FieldTypeDescriptionExample
tailACCUMULATIONAll items of the input accumulation except the first, preserved as an accumulation object.An ACCUMULATION containing the remaining elements after dropping the head

Important Notes

  • Empty handling: If the input accumulation has no items or only one item, the output is an empty accumulation.
  • Robustness: On invalid input or errors, the node returns an empty accumulation rather than failing.
  • Data shape: This node expects an ACCUMULATION object. If you have a plain list, convert it using List to Accumulation.
  • Typical pairing: Often used with Accumulation Head for head/tail decomposition patterns.
  • Order preservation: Aside from removing the first element, the relative order of the remaining items is preserved.

Troubleshooting

  • Output is empty unexpectedly: Ensure the input is a valid ACCUMULATION and contains more than one element. If you're passing a plain list, convert it first using List to Accumulation.
  • Type mismatch errors elsewhere: Some nodes expect plain lists. If you need a list, follow this node with Accumulation to List.
  • Unexpected None or missing values: Verify that earlier steps correctly built the accumulation with Accumulate and didn't pass None-only sequences.