var scores: [Int] = [88, 92, 79] scores.append(95) scores.insert(100, at: 0) scores.remove(at: 2) print(scores) // [100, 88, 95, 95] order depends on inserts print("Count: \(scores.count)") print("First: \(scores.first ?? 0)")
Click Run to execute this code.