Contents

init(upstream:transform:)

Creates a publisher that transforms all elements from the upstream publisher with a provided closure.

Declaration

init(upstream: Upstream, transform: @escaping (Upstream.Output) -> Output)

Parameters

  • upstream:

    The publisher from which this publisher receives elements.

  • transform:

    The closure that transforms elements from the upstream publisher.