hands-on lab

Leveraging Common Scala Immutable Data Structures

Intermediate
1h
69
3.6/5
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.
Lab description

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.

Learning Objectives

Upon completion of this beginner level lab, you will be able to:

  • Understand the three main immutable data structures
  • Implement Scala solutions that use List, Range, and Map

Intended Audience

This lab is intended for:

  • Software engineers moving to the functional programming paradigm
  • Data engineers that need to work with small up to big data in Scala

Prerequisites

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

About the author
Students
40,007
Labs
106
Courses
2
Learning paths
10

Stefano studies Computer Science and is passionate about technology. He loves working with Cloud services and learning all the best practices for them. Google Cloud Platform and Amazon Web Services are the cloud providers he prefers. He is a Google Cloud Certified Associate Cloud Engineer. Node.js is the programming language he always uses to code. When he's not involved in studying or working, Stefano loves riding his motorbike and exploring new places.

Covered topics
Lab steps
Understanding Basic Concepts of List, Range, and Map in Scala
Connecting to the Scala Web IDE
Working with List in Scala
Working with Range in Scala
Working with Map in Scala