@kirillrakhman The first result that came up when I searched for "return Kotlin tuple" was this:
https://gist.github.com/ae6rt/1976128
So I take it that's not valid Kotlin code.
Pair and Triple is probably good enough, I already use my own data classes when wanting to return more than one result.