Scala Collections Tutorial

Scala Collections Tutorial

Scala has a rich set of collection library. Scala Collections may be strict or lazy. Lazy collections have elements that may not consume memory until they are accessed, like Ranges. Additionally, collections may be mutable (the contents of the reference can change) or immutable (the thing that a reference refers to is never changed). Note that immutable collections may contain mutable items.

Audience

This tutorial has been prepared for the beginners to help them understand Scala Collections library to use Collections in Scala based programs.

Prerequisites

For this tutorial, we assume the readers to have prior knowledge of basic software development using Java or Scala. It will help if you had some exposure to the software build and deployment process.

Advertisements