Chapter 2
Working with Strings and Enums
Section 3
Flattening Nested Optionals
Prior to Swift 5, when we had nested optionals, we had called a try on this nested optionals, the result of which are not flattened, meaning, that if we have five nested optionals, then we have to unwrap the final value five times, which can be a time consuming and inefficient exercise. Swift 5 changed this behavior. If we have five nested optionals and we call a try on it, we only get a single unwrapped optional to unwrap.