Daniel Pitts
12/09/2023, 1:04 AMfun <...Types> doThing(block: (Types...)->Unit, args: Types...){ block(*args) }
?hfhbd
12/09/2023, 6:43 AMChris Fillmore
12/09/2023, 4:32 PMChris Fillmore
12/09/2023, 4:33 PMDaniel Pitts
12/09/2023, 4:33 PMDaniel Pitts
12/09/2023, 4:34 PMChris Fillmore
12/09/2023, 4:34 PMmikhail.zarechenskiy
12/11/2023, 8:52 AMkotlin.Function(N)
functions. However, variadic generics require support of tuples as well, or "multiple returns", so we're kind of limited right now on JVM.
We even had a small prototype in the language a few years ago. Here is an [example](https://github.com/KirpichenkovPavel/kotlinx.coroutines/commit/59ac8ac84587a4bc082f72b529620c139735289e#diff-b89b26a9a072f15[…]5f302fea0536d44d0R319) of variadic generics in kotlinx.corourintes