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

By Nadim Bahadoor | Last updated: July 14, 2017 at 13:11 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
Senior Software Developer | Nephila Capital
Founder of allaboutscala.com. I have over 10 years of experience in building large scale real-time trading systems in the financial industry. Passionate about Distributed Systems, Scala, Big Data and Functional Programming. Stay in touch for upcoming tutorials!

Share this article on