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

# Flatten List of Lists Node

> Flatten a list of lists into a single list

<img src="https://mintcdn.com/vectorshift/B2X2zpDX7crEnhCG/images/platform/pipelines/data-transformation/flatten-list.png?fit=max&auto=format&n=B2X2zpDX7crEnhCG&q=85&s=a6486697cbebd80a0847ef086842fc2e" alt="Flatten List of Lists" width="1192" height="650" data-path="images/platform/pipelines/data-transformation/flatten-list.png" />

This node allows you to flatten a list of lists. Specifically, it takes a list of lists and converts it into a list.
For example, flattening \[\[a, b], \[c, d]] becomes \[a, b, c, d].

## Node Inputs

1. Type: The type of list you want to create
   * Type: `Dropdown`
2. List of lists: The list of lists you want to flatten
   * Type: `List<List<T>>` (based on the type of list you choose)

## Node Outputs

1. Flattened list: The flattened list
   * Type: `List<T>`
   * Example usage: `{{flatten_list_0.flattened_list}}`

## Example

The below example is a pipeline for flattening a list of lists to a list.

<img src="https://mintcdn.com/vectorshift/B2X2zpDX7crEnhCG/images/platform/pipelines/data-transformation/flatten-list-example.png?fit=max&auto=format&n=B2X2zpDX7crEnhCG&q=85&s=b75a06d4734e200f0e185f2e3b140922" alt="Flatten List of Lists Example" width="1384" height="336" data-path="images/platform/pipelines/data-transformation/flatten-list-example.png" />
