main

square/leakcanary

Last updated at: 29/12/2023 09:38

Tuples.kt

TLDR

This file contains an internal utility function to that converts a Pair into a Triple by adding an additional element.

Methods

to

This method is an infix function that takes a Pair object and an additional element and returns a Triple object. It is used to convert a Pair into a Triple by adding the provided element as the third element in the resulting Triple.

Classes

package leakcanary.internal.utils

internal infix fun <A, B, C> Pair<A, B>.to(that: C): Triple<A, B, C> = Triple(first, second, that)