> ## 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.

# Flatten List

> Combine nested lists into a single list.

**Flatten List** removes one level of nesting by default, or all nested levels
when deep flattening is enabled.

## Inputs

| Input    | Type    | Required | Description                                  |
| -------- | ------- | -------- | -------------------------------------------- |
| **List** | List    | No       | The list to flatten. Defaults to `[]`.       |
| **Deep** | Boolean | No       | Flatten every nested level. Defaults to off. |

## Output

| Output        | Type | Description         |
| ------------- | ---- | ------------------- |
| **Flattened** | List | The flattened list. |

With **Deep** off, `[[1], [[2]]]` becomes `[1, [2]]`. With it on, the same
input becomes `[1, 2]`.
