When destructuring an object, is it possible to only declare the variables I need?
In this example I'm only using b
and my IDE is giving me a warning that a
is unused.
fun run() {
fun makePair() = Pair("Apple", "Orange")
val (a, b) = makePair()
println("b = $b")
}