zip

inline fun <T1, T2, E, V> zip(result1: Producer<T1, E>, result2: Producer<T2, E>, transform: (T1, T2) -> V): Result<V, E>

Apply a transformation to two Results, if both Results are Ok. If not, the first argument which is an Err will propagate through.

  • Elm: http://package.elm-lang.org/packages/elm-lang/core/latest/Result#map2


inline fun <T1, T2, T3, E, V> zip(result1: Producer<T1, E>, result2: Producer<T2, E>, result3: Producer<T3, E>, transform: (T1, T2, T3) -> V): Result<V, E>

Apply a transformation to three Results, if all Results are Ok. If not, the first argument which is an Err will propagate through.

  • Elm: http://package.elm-lang.org/packages/elm-lang/core/latest/Result#map3


inline fun <T1, T2, T3, T4, E, V> zip(result1: Producer<T1, E>, result2: Producer<T2, E>, result3: Producer<T3, E>, result4: Producer<T4, E>, transform: (T1, T2, T3, T4) -> V): Result<V, E>

Apply a transformation to four Results, if all Results are Ok. If not, the first argument which is an Err will propagate through.

  • Elm: http://package.elm-lang.org/packages/elm-lang/core/latest/Result#map4


inline fun <T1, T2, T3, T4, T5, E, V> zip(result1: Producer<T1, E>, result2: Producer<T2, E>, result3: Producer<T3, E>, result4: Producer<T4, E>, result5: Producer<T5, E>, transform: (T1, T2, T3, T4, T5) -> V): Result<V, E>

Apply a transformation to five Results, if all Results are Ok. If not, the first argument which is an Err will propagate through.

  • Elm: http://package.elm-lang.org/packages/elm-lang/core/latest/Result#map5