Arrays can be passed into vararg functions using the Spread Operator, *.
Assuming the following function exists...
fun printNumbers(vararg numbers: Int) {
for (number in numbers) {
println(number)
}
}
You can pass an array into the function like so...
val numbers = intArray...