arrow-core-data / arrow.core / Tuple2

Tuple2

@higherkind data class Tuple2<out A, out B>

Constructors

<init> Tuple2(a: A, b: B)

Properties

a val a: A
b val b: B

Functions

ap fun <C> ap(f: <ERROR CLASS><out <ERROR CLASS>, (B) -> C>): <ERROR CLASS>
bimap fun <C, D> bimap(fl: (A) -> C, fr: (B) -> D): Tuple2<C, D>
coflatMap fun <C> coflatMap(f: (<ERROR CLASS><A, B>) -> C): Tuple2<A, C>
extract fun extract(): B
flatMap fun <C> flatMap(f: (B) -> <ERROR CLASS><A, C>): <ERROR CLASS>
foldL fun <C> foldL(b: C, f: (C, B) -> C): C
foldR fun <C> foldR(lb: Eval<C>, f: (B, Eval<C>) -> Eval<C>): Eval<C>
map fun <C> map(f: (B) -> C): Tuple2<A, C>
reverse fun reverse(): Tuple2<B, A>
show fun show(SA: Show<A>, SB: Show<B>): String
toString fun toString(): String

Extension Functions

bothIor fun <A, B> Tuple2<A, B>.bothIor(): Ior<A, B>
toPair fun <A, B> Tuple2<A, B>.toPair(): Pair<A, B>

Do you like Arrow?

Arrow Org
<