Kotlin - Destructuring Declarations
Kotlin conveys numerous highlights of various programming languagesFollowing is the basic linguistic structure of the destructuring affirmation.
val (call, age) = characterIn the above sentence structure, we have made an item and characterized every one of them by and large in a solitary announcement
println(call) println(age)Presently, enable us to perceive how we can utilize the indistinguishable in our genuine ways of life programming.
fun main(args: Array
) val s = Student("Welookups.Com","Kotlin") val (name,subject) = s println("You are becoming acquainted with "+challenge+" from "+name) realities greatness Student( val a :String,val b: String ) var call:String = a var difficulty:String = b
You are becoming acquainted with Kotlin from Welookups.Com