> For the complete documentation index, see [llms.txt](https://unstructured-playgroud.gitbook.io/unstructuredplayground/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://unstructured-playgroud.gitbook.io/unstructuredplayground/release-1.0/untitled/untitled.md).

# Reduce Abstraction

Reduce

## Syntax

Reduce takes a list, a binary operation, and an identity element for the operation.  It returns a value representing the binary operator applied to successive application of the operations to intermediate results.

![Reduce](https://3266175528-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LTtjxZz0mQ2dLXJi93S%2F-LV9LzNWdQsdt7UTQ276%2F-LV9N-t8UyIpEQ_EySNn%2FScreen%20Shot%202019-01-01%20at%2010.04.08%20AM.png?alt=media\&token=bac51b13-2147-408e-958b-456333121fdf)

\
Example
-------

```
from functools import reduce
product = reduce((lambda x, y: x * y), [47, 11, 42, 13])

# Output: 113
```
