# merge_lists

> **Function** in `langchain_core`

📖 [View in docs](https://reference.langchain.com/python/langchain-core/utils/_merge/merge_lists)

Add many lists, handling `None`.

## Signature

```python
merge_lists(
    left: list[Any] | None,
    *others: list[Any] | None = (),
) -> list[Any] | None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `left` | `list[Any] \| None` | Yes | The first list to merge. |
| `others` | `list[Any] \| None` | No | The other lists to merge. (default: `()`) |

## Returns

`list[Any] | None`

The merged list.

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/1c3a4186cf2ba4f28face59118ac7786de009f91/libs/core/langchain_core/utils/_merge.py#L89)