I'm using Array(0, {i -> ""})
currently, and I would like to know if there's a better implementation such as Array()
plus, if I'm using arrayOfNulls<String>(0) as Array<String>
, the compiler will alert me that this cast can never succeed. But it's the default implementation inside Array(0, {i -> ""})
. Do I miss something?