Convert List Or Array To Vararg (Kotlin)

April 20, 2018
fun test(vararg strings: String) { /* ... */ }

Convert array or list to vararg

test(*arrayOf("a", "b", "c"))
test(*listOf("a", "b", "c"))
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.