If you need an array of primitives, like an array of ints, use a specific type like 'IntArray' rather then 'Array<Int>' #KotlinTips
10
48
383
0
9
Download Image
@kotlin Since all types in Kotlin are Objects, it is important to understand this function, that's why we can decide whether using an object or primitive for performance benefits.