We break down the
vararg parameter in Kotlin: why it exists, what a call with any number of arguments looks like (including
f()), why inside the function it’s “almost an array” (you can use
size,
indices, and indexing), what limitations exist (only one
vararg), and how to apply it in practice—from utilities like
say()/
hint() to a simple
debug().