If you are only interested in the first couple of arguments, you can omit the rest. This is not possible in your code, but if you change the order of the arguments, you can write it like this:
fun run() { fun makePair() = Pair("Orange", "Apple") val (b) = makePair() println("b = $b") }
source share