Swift 有許多 optional 的相關語法,為了安全我們通常採用 if let 或 guard let 讀取 optional 的內容後再做運算,不過 Optional 型別的 map function 也是滿不錯的方法,接下來就讓我們一步步打開它神秘的面紗吧。