---
title: "list_reduce function in Strata | Oplema"
description: "Reduce a list to one value by applying a lambda to a running result and each next value. Use it in a Strata Formula or Filter."
url: "https://oplema.com/docs/strata/functions/list-reduce"
updated: "2026-11-04"
---

# list\_reduce

Reduces all elements of the input list into a single scalar value by executing the lambda function on a running result and the next list element. The lambda function has an optional initial\_value argument.

Also available as array\_reduce, reduce.

## Try an expression

In [Formula](https://oplema.com/docs/strata/prep/formula), enter the expression and set Output type to **INTEGER**.

### Expression

```
list_reduce([1, 2, 3], lambda x, y : x + y)
```

### Result

```
6
```

To use your own data, replace the example values with column names. Keep format strings and other options as written.

Try it live in Formula

Result
| id | result |
| --- | --- |
| 1 | 6 |

## Arguments and types

```
list_reduce(list, lambda(x,y), initial_value)
```

**list**

List

**lambda(x,y)**

Lambda expression

**initial\_value**

Any value

Supported signatures (2)

```
list_reduce(list: ANY[], lambda(x,y): LAMBDA) → ANY
list_reduce(list: ANY[], lambda(x,y): LAMBDA, initial_value: ANY) → ANY
```

The result type can depend on the input types. See DuckDB for the full argument rules.

## Things to know

If the first argument is missing, the result is NULL.

## Related functions

[list\_transform

Apply a lambda expression to each list item and return the results as a list. The item type of the output comes from the lambda result.

](https://oplema.com/docs/strata/functions/list-transform)[list\_filter

Keep the list items for which a lambda expression returns true. The lambda result must be convertible to BOOLEAN, and the output has the same type as the input list.

](https://oplema.com/docs/strata/functions/list-filter)[list\_aggregate

Run a named aggregate function, such as min or sum, over the items in a list.

](https://oplema.com/docs/strata/functions/list-aggregate)[list\_resize

Resize a list to the given size. New items take the given value, or a missing value if none is given.

](https://oplema.com/docs/strata/functions/list-resize)

[Browse lists & arrays](https://oplema.com/docs/strata/functions#lists-&-arrays) [DuckDB documentation](https://duckdb.org/docs/current/sql/functions/list.html#list_reducelist-lambda-x-y-initial_value)

Function metadata from DuckDB, used under the [MIT license](https://github.com/duckdb/duckdb/blob/v1.5.4/LICENSE).
