September 2021
Beginner
560 pages
10h 49m
English
After reading this lesson, you will be able to
Now that you have discovered the Option type in the previous unit, you’ll learn about List in this lesson; many of the concepts you have mastered for optional values are also applicable to lists but in a slightly different context. The type List allows you to represent an immutable ordered sequence of elements. This concept is not exclusive to the Scala language. For example, you use an ArrayList or a LinkedList in Java, a list in C++, a list literal in Python, and an array in Javascript. You’ll find that lists in Scala are relatively similar to many other languages, ...
Read now
Unlock full access