Check out example codes for "how to make array in kotlin". It will help you in understanding the concepts better.

Code Example 1

val a: Array<Double> = arrayOf(3.0, 4.5, 8.0, 19.0)

Code Example 2

val num = arrayOf(1, 2, 3, 4)   //implicit type declaration
val num = arrayOf<Int>(1, 2, 3) //explicit type declaration

Learn ReactJs, React Native from akashmittal.com