https://kotlinlang.org logo
#android
Title
# android
g

gian

10/01/2019, 2:23 PM
Have you tried using the spread operator?
context.getString(resId, *args)
j

John

10/01/2019, 2:27 PM
Okay that works
So that means
vararg
does not compile to
Array
, but
*vararg
does (?)
g

gian

10/01/2019, 2:38 PM
vararg measn you get an array with arguments. If you then want to pass this array to another function acception vararg, you have to spread it
6 Views