Passing Multi as parameters


#1

Hello,

I’m new to Kotlin and would like to know how to declare multi as function parameters.

Any Idea ?


#2

I'm not sure if I'm understanding you correctly. Do you mean passing a variable number of parameters to a function (like int... in Java)?

The documentation explains how to do that here and here. Hope that helps!


#3

I think I did a mistake : I though Multi was a kind of tuples.......

Sorry.

David


#4

You meant multi-declarations ("multi" is not a word in Kotlin). This functionality is not supported at the moment.