September 2021
Beginner
560 pages
10h 49m
English
After reading this lesson, you will be able to
map functionflatten methodflatMap operationList using for-comprehensionIn the previous lesson, you learned the basics of the type List of the Scala standard collection library. In this lesson, you’ll learn about the basic operations you can perform on lists similar to those you have seen for the class Option. You will see how to use the map operation to apply a function to a sequence’s elements, unify nested lists using flatten, and chain them together using flatMap. You’ll learn how to use for-comprehension to ...
Read now
Unlock full access