From Get Programming with Scala by Daniela Sfregola
This part of the article series delves into using map to transform an object contained in an Option and how to chain optional values together using flatMap.
This article introduces the Option type and discuss why you would (or wouldn’t) want to use it and when.
From Get Programming with Scala
By Daniela Sfregola
© 2019 Manning — Design Credits