swift coalesce code example
Example: nil coalescing swift
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"
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"