elect
03/07/2018, 10:24 AMAndreas Sinz
03/07/2018, 10:33 AMdiesieben07
03/07/2018, 10:49 AM*
an operator fun
, so you can enable it on instances of your own classes and not just arrays. Which I think is a good idea, it would allow to pass any collection to vararg
.elect
03/07/2018, 10:53 AMval color = Vec4()
val vertexData = floatArrayOf(*color)
diesieben07
03/07/2018, 10:56 AMkotlin.jvm.internal.SpreadBuilder
already, which supports spreading Collection
, Iterable
and Iterator
, but the compiler does not let you.elect
03/07/2018, 10:58 AM