Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

inferred type is Array

fun varargFun(vararg va: Number) {
    val copy = arrayOf(*va)
    arrayFun(copy)
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #inferred #type
ADD COMMENT
Topic
Name
5+9 =