Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想遍历一个数组,其中可能并非所有元素都已初始化。我该怎么做?
val array = Array<Int>(4) array[0] = 10 array[1] = 100 for elem in array do : ...