April 2017
Intermediate to advanced
316 pages
9h 33m
English
So far, we know that Optionals wrap values in themselves. Wrapping means that the actual data is stored within an outer structure or container (See Higher-kinded types in the previous chapter).
For instance, we print optionalString as follows:
print(optionalString)
The result will be Optional("A String literal").
How will we unwrap Optionals and use the values that we need? There are different methods to unwrap Optionals that we will go through in the following sections.
Read now
Unlock full access