What is Vararg in Kotlin?

Kotlin Android. Sometimes we need a function where we can pass n number of parameters, and the value of n can be decided at runtime. Kotlin provides us to achieve the same by defining a parameter of a function as vararg .

Sizin İçin Seçtik  How do I create a constructor in Kotlin Data class?

Leave a Reply

Your email address will not be published. Required fields are marked *