📜  nil 合并 swift 代码示例

📅  最后修改于: 2022-03-11 15:01:03.104000             🧑  作者: Mango

代码示例1
var a: Int? = nil

// The right operand will be used if the left operand
// evaluates to nil.
print(a ?? "a is nil") // Prints "a is nil"