jaspersmit
06/04/2019, 9:41 AMval varArgsFunction = createVarArgsFunction("foo")
varArgsFunction(1, 2, 3)
karelpeeters
06/04/2019, 11:41 AMfun foo(vararg x: Int) {}
val f = ::foo
shows the type of f
to be (IntArray) -> Unit
, so not it's not possible. Use arrays instead.jaspersmit
06/04/2019, 11:54 AM