Scala Collections

The collections class in Scala is a high-performance and type-parameterized framework with support for mutable and immutable type hierarchies. These distinct and independent mutable and immutable type hierarchies make switching between mutable and immutable implementations much simpler. Scala’s obje...

Full description

Saved in:
Bibliographic Details
Published inBeginning Scala 3 pp. 135 - 171
Main Authors Layka, Vishal, Pollak, David, Sacco, Andres
Format Book Chapter
LanguageEnglish
Published United States Apress L. P 2022
Apress
Online AccessGet full text

Cover

Loading…
More Information
Summary:The collections class in Scala is a high-performance and type-parameterized framework with support for mutable and immutable type hierarchies. These distinct and independent mutable and immutable type hierarchies make 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, which 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 the Java Collections library. Scala has a rich collection library. This chapter gives you a tour of the most 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 options to find the solutions you need.
ISBN:9781484274217
1484274210
DOI:10.1007/978-1-4842-7422-4_6