You can also `map` it. ``` doubleArray.map { it.to...
# getting-started
e
You can also
map
it.
Copy code
doubleArray.map { it.toFloat() }
UPD As was fairly noticed,
map
returns
Array<Float>
, which I overlooked. You need to additionally call
toFloatArray()
to avoid boxing
👍 1
d
That gives a
Array<Float>
, which is using boxed
Float
objects.