arrow-core / arrow.core.extensions.andthen.functor / arrow.Kind / tupleRight
@JvmName("tupleRight") fun <X, A, B> Kind<Kind<ForAndThen, X>, A>.~~tupleRight~~(arg1: B): AndThen<X, Tuple2<A, B>>
Deprecated: AndThen
is deprecated in favor of the function andThen
used to provide stack safe function composition.
Pairs A with B returning a Kind<F, Tuple2<A, B>>
Kind<F, A> -> Kind<F, Tuple2<A, B>>
import arrow.core.*
import arrow.core.extensions.andthen.functor.*
import arrow.core.*
import arrow.core.extensions.andthen.applicative.just
fun main(args: Array<String>) {
val result =
//sampleStart
"Hello".just<String, String>().tupleRight<String, String, String>("World")
//sampleEnd
println(result)
}
Do you like Arrow?
✖