var array:[Int] = []
var index = 5
if array[index] == nil {
array[index] = 1
}
Currently Xcode states that an int can not take the value of nil. So this code doesn't work. Is there any way to produce the same effect or verifying if a specific index is empty?
