Hard
How to test if an optional variable is non-null?
Author: Jorge GomesStatus: PublishedQuestion passed 396 times
Edit
3
Community EvaluationsNo one has reviewed this question yet, be the first!
Similar QuestionsMore questions about Swift
1
Can we override both getter and setter in Swift?1
What is the purpose of the required keyword in Swift?1
What is the type of an undefined variable in Swift?1
Is the following code valid?
```
var x = 10
var y = x
```1
Swift: What is the output of the following code? `var x = 10; x = x + undefined; print(x)`