# get_lambda_source

> **Function** in `langchain_core`

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

Get the source code of a lambda function.

## Signature

```python
get_lambda_source(
    func: Callable,
) -> str | None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `func` | `Callable` | Yes | a Callable that can be a lambda function. |

## Returns

`str | None`

the source code of the lambda function.

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/02991cb4cf2063d51a07268edafb05fe53de1826/libs/core/langchain_core/runnables/utils.py#L384)