Louis CAD doing software

Louis CAD doing software

How to return 2+ values with 0 allocation in Kotlin

Sep 20, 20215 min read

The problem Most programming languages, including Kotlin, only allow returning one value, and there's a reason for that: We don't want to depend solely on the order of the parameters, because it can easily break through refactoring, or even before th...

How to return 2+ values with 0 allocation in Kotlin