Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

Swift Nil-coalescing operator

var someValue:Int!
let defaultValue = 5
let unwrappedValue:Int = someValue ?? defaultValue
print(unwrappedValue)
 
PREVIOUS NEXT
Tagged: #Swift #operator
ADD COMMENT
Topic
Name
1+2 =