public class ZipKt
| Modifier and Type | Method and Description |
|---|---|
static <V1,V2,E,U> |
zip(kotlin.jvm.functions.Function0<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V1,? extends E>> result1,
kotlin.jvm.functions.Function0<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V2,? extends E>> result2,
kotlin.jvm.functions.Function2<? super V1,? super V2,? extends U> transform)
Apply a transformation to two
class Result, if both class Result are class Ok.
If not, the first argument which is an class Err will propagate through. |
static <V1,V2,V3,E,U> |
zip(kotlin.jvm.functions.Function0<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V1,? extends E>> result1,
kotlin.jvm.functions.Function0<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V2,? extends E>> result2,
kotlin.jvm.functions.Function0<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V3,? extends E>> result3,
kotlin.jvm.functions.Function3<? super V1,? super V2,? super V3,? extends U> transform)
Apply a transformation to three
class Result, if all class Result are class Ok.
If not, the first argument which is an class Err will propagate through. |
static <V1,V2,V3,V4,E,U> |
zip(kotlin.jvm.functions.Function0<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V1,? extends E>> result1,
kotlin.jvm.functions.Function0<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V2,? extends E>> result2,
kotlin.jvm.functions.Function0<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V3,? extends E>> result3,
kotlin.jvm.functions.Function0<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V4,? extends E>> result4,
kotlin.jvm.functions.Function4<? super V1,? super V2,? super V3,? super V4,? extends U> transform)
Apply a transformation to four
class Result, if all class Result are class Ok.
If not, the first argument which is an class Err will propagate through. |
static <V1,V2,V3,V4,V5,E,U> |
zip(kotlin.jvm.functions.Function0<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V1,? extends E>> result1,
kotlin.jvm.functions.Function0<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V2,? extends E>> result2,
kotlin.jvm.functions.Function0<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V3,? extends E>> result3,
kotlin.jvm.functions.Function0<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V4,? extends E>> result4,
kotlin.jvm.functions.Function0<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V5,? extends E>> result5,
kotlin.jvm.functions.Function5<? super V1,? super V2,? super V3,? super V4,? super V5,? extends U> transform)
Apply a transformation to five
class Result, if all class Result are class Ok.
If not, the first argument which is an class Err will propagate through. |
public static <V1,V2,E,U> Result<U,E> zip(kotlin.jvm.functions.Function0<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V1,? extends E>> result1, kotlin.jvm.functions.Function0<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V2,? extends E>> result2, kotlin.jvm.functions.Function2<? super V1,? super V2,? extends U> transform)
Apply a transformation to two class Result, if both class Result are class Ok.
If not, the first argument which is an class Err will propagate through.
Elm: http://package.elm-lang.org/packages/elm-lang/core/latest/Result#map2
class Result,
class Result,
class Ok,
class Errpublic static <V1,V2,V3,E,U> Result<U,E> zip(kotlin.jvm.functions.Function0<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V1,? extends E>> result1, kotlin.jvm.functions.Function0<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V2,? extends E>> result2, kotlin.jvm.functions.Function0<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V3,? extends E>> result3, kotlin.jvm.functions.Function3<? super V1,? super V2,? super V3,? extends U> transform)
Apply a transformation to three class Result, if all class Result are class Ok.
If not, the first argument which is an class Err will propagate through.
Elm: http://package.elm-lang.org/packages/elm-lang/core/latest/Result#map3
class Result,
class Result,
class Ok,
class Errpublic static <V1,V2,V3,V4,E,U> Result<U,E> zip(kotlin.jvm.functions.Function0<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V1,? extends E>> result1, kotlin.jvm.functions.Function0<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V2,? extends E>> result2, kotlin.jvm.functions.Function0<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V3,? extends E>> result3, kotlin.jvm.functions.Function0<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V4,? extends E>> result4, kotlin.jvm.functions.Function4<? super V1,? super V2,? super V3,? super V4,? extends U> transform)
Apply a transformation to four class Result, if all class Result are class Ok.
If not, the first argument which is an class Err will propagate through.
Elm: http://package.elm-lang.org/packages/elm-lang/core/latest/Result#map4
class Result,
class Result,
class Ok,
class Errpublic static <V1,V2,V3,V4,V5,E,U> Result<U,E> zip(kotlin.jvm.functions.Function0<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V1,? extends E>> result1, kotlin.jvm.functions.Function0<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V2,? extends E>> result2, kotlin.jvm.functions.Function0<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V3,? extends E>> result3, kotlin.jvm.functions.Function0<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V4,? extends E>> result4, kotlin.jvm.functions.Function0<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V5,? extends E>> result5, kotlin.jvm.functions.Function5<? super V1,? super V2,? super V3,? super V4,? super V5,? extends U> transform)
Apply a transformation to five class Result, if all class Result are class Ok.
If not, the first argument which is an class Err will propagate through.
Elm: http://package.elm-lang.org/packages/elm-lang/core/latest/Result#map5
class Result,
class Result,
class Ok,
class Err