I was wondering if there is an easy way to convert an Array<Int> into an IntArray? The background is that the array-helper returns an Array<Int>, but the function I have to call requires an IntArray.
fun test(values: IntArray) { ... }
val values = array(1, 2, 3)
test(values) // does not work
In your example you can just use intArray function.
And for converting we don't have any function, and I create issue, feel free to vote and/or contribute.