Chapter 6: A Beginner's Tutorial To Using Scala's Immutable Collection

By Nadim Bahadoor | Last updated: March 16, 2018 at 13:27 pm

In this section, we will go over how to use the Immutable Collection in the Scala programming language.

 

If you recall from the Scala Features Tutorial, as a functional programming language, Scala favours the use of immutability. As a result, it should be of no surprise that Scala comes built-in with a suite of immutable collections.

 

Throughout the tutorials we will use the popular IntelliJ IDEA which we've setup in Chapter 1. I hope that by now you are more comfortable using IntelliJ. If not, feel free to review the previous tutorials from Chapter 1!

 

In this chapter, we will provide tutorials on the topics below. If none of these make any sense right now, that's OK :)

  • How to use Scala's immutable List
  • How to use Scala's immutable ListSet
  • How to use Scala's immutable ListMap
  • How to use Scala's immutable Map
  • How to use Scala's immutable HashMap
  • How to use Scala's immutable TreeMap
  • How to use Scala's immutable Queue
  • How to use Scala's immutable Set
  • How to use Scala's immutable HashSet
  • How to use Scala's immutable TreeSet
  • How to use Scala's immutable SortedSet
  • How to use Scala's immutable BitSet
  • How to use Scala's immutable Stack
  • How to use Scala's immutable Stream
  • How to use Scala's immutable Vector

So let's get started!

Nadim Bahadoor on FacebookNadim Bahadoor on GithubNadim Bahadoor on LinkedinNadim Bahadoor on Twitter
Nadim Bahadoor
Technology and Finance Consultant with over 14 years of hands-on experience building large scale systems in the Financial (Electronic Trading Platforms), Risk, Insurance and Life Science sectors. I am self-driven and passionate about Finance, Distributed Systems, Functional Programming, Big Data, Semantic Data (Graph) and Machine Learning.