Tag

option

Using Option in Scala, Part 2: map and flatmap

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.

© 2019 Manning — Design Credits