arrow-core / arrow.core.extensions.either.functor / arrow.Kind / tupleLeft

tupleLeft

@JvmName("tupleLeft") fun <L, A, B> Kind<Kind<ForEither, L>, A>.~~tupleLeft~~(arg1: B): Either<L, Tuple2<B, A>> Deprecated: @extension kinded projected functions are deprecated

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.either.functor.*
import arrow.core.*


 import arrow.core.extensions.either.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?

Arrow Org
<