Hey are we able to return more than 1 value or does that still require the Pair work around
o
orangy
11/04/2018, 4:11 PM
There is no syntax in Kotlin to return multiple values
h
Hunter Breathat
11/04/2018, 4:54 PM
Ok thanks I knew there wasn't for the Jvm builds because the Jvm is restricted to only 1 I didn't know if native was as well
g
gildor
11/05/2018, 2:13 AM
It cannot be native-only feature, otherwise it would be possible to use such code on other platforms and it’s not just some platfrom-specific API, but core syntax change
gildor
11/05/2018, 2:15 AM
Instead of generic Pair you also can use special data class
o
olonho
11/05/2018, 7:55 AM
but tuples along with decomposition can make pretty good feeling of multiple results