to

infix fun <A, B, C> Pair<A, B>.to(third: C): Triple<A, B, C>

Creates a Triple from a Pair and a third value. This allows for a chained call like "A" to "B" to "C".

Return

A new Triple containing the elements from the original Pair and the new third value.

Parameters

third

The third value.