SwiftGrabinterview report
Designing a custom Optional
Suppose there were no question-mark optional syntax and no standard Optional. If you had to design a type in Swift that expresses 'a value or nothing,' how would you define it?
Designing a custom Optional
Suppose there were no question-mark optional syntax and no standard Optional. If you had to design a type in Swift that expresses 'a value or nothing,' how would you define it?
SwiftMultiple choiceBasics
What does this code print? …
#map #flatmap
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 #generics
SwiftShort answerBasics
Extend Optional so that any optional can be asked for its nil status, like someOptional.i…
#optional #enum