a guest Sep 11th, 2019 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public data class Triple<out A, out B, out C>(
  2.     public val first: A,
  3.     public val second: B,
  4.     public val third: C
  5. ) : Serializable {
  6.     public override fun toString(): String = "($first, $second, $third)"
  7. }
  9. public fun <T> Triple<T, T, T>.toList(): List<T> = listOf(first, second, third)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand