Example (Apple Official)
let cancellable = (0...10).publisher
.reduce(0, { accum, next in accum + next })
.sink { print("\($0)") }
// 55
Example (Apple Official)
let cancellable = (0...10).publisher
.reduce(0, { accum, next in accum + next })
.sink { print("\($0)") }
// 55