map(_:)

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

Effect.swift:353
func map<T>(_ transform: @escaping (Action) -> T) -> Effect<T>

Parameters

transform

A closure that transforms the upstream effect’s action to a new action.

Returns

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