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!