Hullaballoonatic
03/08/2020, 6:29 PMList
and Array
in Kotlin? Or Array<Double>
and DoubleArray
? Meaning when should you use one or the other, not what they literally are in terms of blocks of memory or the like.Leon Linhart
03/08/2020, 6:34 PMArray<Double>
is Double[]
and DoubleArray
is double[]
. Prefer the latter whenever possible (i.e. not working with generics).
Also generally speaking, only use Array
instead of List
for performance sensitive code.Ruckus
03/08/2020, 7:03 PM