Kotlin example of creating triple using the constructor
fun main() {
// creating a new instance of the Triple
val(a, b, c) = Triple(10, 20, 30)
// Printing the values
println(a)
println(b)
println(c)
}
Output:
10
20
30
