Chunk List

data · C171 · starter-package 7.0.1

Divide a list into fixed-size groups while retaining a shorter final group.

When to use

Divide a list into fixed-size groups while retaining a shorter final group.

Inputs

  • list — List: list; required; supported workflow value for list.
  • size — Size: number; required; supported workflow value for size.

Outputs

  • Chunks (list): deterministic result output.

Behavior and boundaries

Size is a positive whole number from 1 through 10,000. The final chunk may contain fewer items; an empty input produces no chunks.

These operations do not change the original input. Unsupported, circular, invalid, or excessively large values stop the workflow with a clear message.

Example

List [1, 2, 3, 4, 5] with Size 2 produces [[1, 2], [3, 4], [5]].

Failure cases

Execution stops with an actionable Nodestly error when a required connector is missing, a value has the wrong type or shape, a configured index/mode is unsupported, or the result would exceed collection limits.

Errors and recovery

When this block reports an error, no downstream output is emitted. Correct the highlighted input or setting described by the message, then run the workflow again.