Scala Collections

  • Vishal Layka
  • David Pollak
Chapter

Abstract

The collections framework in Scala is a high-performance and type-parametrized framework with support for mutable and immutable type hierarchies. These distinct and independent mutable and immutable type hierarchies enable switching between mutable and immutable implementations much simpler. Scala’s object-oriented collections also support functional higher-order operations such as map, filter, and reduce that let you use expression-oriented programming in collections.  You can access and use the entire Java collections library from your Scala code because Scala is a JVM language, but this is not recommended because higher-order operations are not available with Java Collections library. Scala has a rich collection library. This chapter gives you a tour of the most commonly used collection types and operations, showing just the types you will use most frequently. The goal of this chapter is to guide you through the myriad of options to find the solutions you need.

Keywords

Filter Method Roman Numeral Collection Type Return Type Scala Code 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Vishal Layka 2015

Authors and Affiliations

  • Vishal Layka
    • 1
  • David Pollak
    • 1
  1. 1.EvereBelgium

Personalised recommendations