toTuple

fun <T1, T2> Pair<T1, T2>.toTuple(): Tuple2<T1, T2>

Returns a new Tuple2 based on the arguments in the current Pair.


fun <T1, T2, T3> Triple<T1, T2, T3>.toTuple(): Tuple3<T1, T2, T3>

Returns a new Tuple3 based on the arguments in the current Triple.