Advertisement
Guest User

Untitled

a guest
Sep 11th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  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. }
  8.  
  9. public fun <T> Triple<T, T, T>.toList(): List<T> = listOf(first, second, third)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement