Publishers.Scan
A publisher that transforms elements from the upstream publisher by providing the current element to a closure along with the last value returned by the closure.
Declaration
struct Scan<Upstream, Output> where Upstream : PublisherA publisher that transforms elements from the upstream publisher by providing the current element to a closure along with the last value returned by the closure.
struct Scan<Upstream, Output> where Upstream : Publisher