Generic Instance Method

map(_:)

Transforms all elements from the upstream publisher with a provided closure.

Declaration

func map<T>(_ transform: @escaping ((A.Output, B.Output, C.Output, D.Output)) -> T) -> Publishers.Map<Publishers.Zip4<A, B, C, D>, T>

Parameters

transform

A closure that takes one element as its parameter and returns a new element.

Return Value

A publisher that uses the provided closure to map elements from the upstream publisher to new elements that it then publishes.