If you need to work with the functional programming paradigm, you will mostly use data structures. They are essentials when it comes the need to manage small to big quantity of data. The functional programming paradigm leverages the concept of Immutability: when you are using an object, it can't change form.
Scala is one of the best languages if you need to develop following the functional paradigm. So, it offers you different sative data structures, and they are immuatables (they don't change, if you make a change, a new data structure will be created). The most commonly used are: List, Range, and Map.
In this lab, you will start understanding and using List, Range, and Map in Scala.
Upon completion of this beginner level lab, you will be able to:
This lab is intended for:
To get the most out of this lab, you should have basic knowledge of Scala. To achieve this, we suggest taking the following labs:
Updates
April 20th, 2023 - Updated theia to enable autosave