Skip to content

Accumulation to List

Converts an ACCUMULATION object into a standard list. It extracts the internal sequence of items from the accumulation container and returns them as a plain list, preserving order. If the input is invalid or empty, it returns an empty list.
Preview

Usage

Use this node when you have been collecting items with accumulation-based nodes and need a native list for downstream operations such as iteration, selection, transformation, or output. Typically placed after nodes like Accumulate or List to Accumulation to expose the collected items as a list for further processing.

Inputs

FieldRequiredTypeDescriptionExample
accumulationTrueACCUMULATIONThe accumulation container holding a sequence of items under its internal storage. Usually produced by Accumulate or List to Accumulation nodes.ACCUMULATION object produced by Accumulate (e.g., {"accum": ["item A", "item B", 3]})

Outputs

FieldTypeDescriptionExample
list*A standard list of the accumulated items. Items are returned in insertion order.["item A", "item B", 3]

Important Notes

  • This node returns an empty list if the input is not a valid ACCUMULATION or has no items.
  • Item order is preserved from how they were added to the accumulation.
  • If earlier accumulation steps skipped None values (per their logic), those None items will not appear; this node itself does not apply additional filtering.
  • The output type is wildcard (*) but practically represents a list of items that may be of mixed types.

Troubleshooting

  • If the output is an empty list unexpectedly, ensure the input is a valid ACCUMULATION and contains items (verify upstream nodes like Accumulate or List to Accumulation).
  • If downstream nodes expect a specific element type, ensure earlier steps added the correct types to the accumulation, since the list may contain mixed types.
  • If you see unexpected items, check upstream accumulation logic to confirm None-skipping or other behaviors that may affect collected items.