SwiftSwiggy
Extending Optional
Extend Optional so that any optional can be asked for its nil status, like someOptional.isNil. How would you implement it?
Extending Optional
Extend Optional so that any optional can be asked for its nil status, like someOptional.isNil. How would you implement it?
SwiftMultiple choiceBasics
Which statements about Swift enum are correct? Pick all that apply.
#enum #pattern-matching
SwiftShort answerIntro
Why does Swift have optionals?
#optional #enum
SwiftShort answerBasics
Extend Array with a myCompactMap that behaves like the standard library's compactMap. How…
#optional #extension
SwiftShort answerAdvanced
Suppose there were no question-mark optional syntax and no standard Optional. If you had …
#optional #enum