Ok, if the array — created in this function — bein...
# getting-started
m
Ok, if the array — created in this function — being passed into a single vararg function by means of spread operator — was not captured by crossinline/noinline anonymous function — not mutated after vararg function call then it should not be copied 🙂 Behaviour of
varargFunction(a, b, c)
will then be equal to
varargFunction(*arrayOf(a, b, c))
i
— not mutated after vararg function call
and not used after the function call at all.
m
Thanks!