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

# nextPartialResult

An error-throwing closure that takes as its arguments the previous value returned by the closure and the next element emitted from the upstream publisher.

## Declaration

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

## See Also

### Inspecting publisher properties

- [upstream](combine/publishers/tryscan/upstream.md)
- [initialResult](combine/publishers/tryscan/initialresult.md)
