---
title: nextPartialResult
framework: combine
role: symbol
role_heading: Instance Property
path: combine/publishers/reduce/nextpartialresult
---

# nextPartialResult

A closure that takes the previously-accumulated value and the next element from the upstream publisher to produce a new value.

## Declaration

```swift
let nextPartialResult: (Output, Upstream.Output) -> Output
```

## See Also

### Inspecting publisher properties

- [upstream](combine/publishers/reduce/upstream.md)
- [initial](combine/publishers/reduce/initial.md)
