arrow-core / arrow.core.extensions.andthen.functor / arrow.Kind / tupleLeft
@JvmName("tupleLeft") fun <X, A, B> Kind<Kind<ForAndThen, X>, A>.~~tupleLeft~~(arg1: B): AndThen<X, Tuple2<B, A>>
Deprecated: AndThen
is deprecated in favor of the function andThen
used to provide stack safe function composition.
Pairs B with A returning a Kind<F, Tuple2<B, A>>
Kind<F, A> -> Kind<F, Tuple2<B, A>>
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>().tupleLeft<String, String, String>("World")
//sampleEnd
println(result)
}
Do you like Arrow?
✖