> ## Documentation Index
> Fetch the complete documentation index at: https://learn.workflow.dog/llms.txt
> Use this file to discover all available pages before exploring further.

# Chunk List

> Split a list into smaller lists of a fixed maximum size.

**Chunk List** divides a list from left to right. The final chunk can contain
fewer items than the requested size.

## Inputs

| Input    | Type   | Required | Description                                 |
| -------- | ------ | -------- | ------------------------------------------- |
| **List** | List   | No       | The list to split. Defaults to `[]`.        |
| **Size** | Number | Yes      | A positive whole number of items per chunk. |

## Output

| Output     | Type          | Description                          |
| ---------- | ------------- | ------------------------------------ |
| **Chunks** | List of lists | The chunks, in their original order. |

For example, chunking `[1, 2, 3, 4, 5]` with a size of `2` returns
`[[1, 2], [3, 4], [5]]`.

<Warning>**Size** must be a whole number greater than zero.</Warning>
