If I have a function header like:
fun addAttributes(vararg attributes: String) {
...
}
And I want to pass attributes
in here:
val atts = arrayOf("1", "2", "3")
addAttributes(atts)
It gives a compilation error about incompatible types. What should I do?