Scala has a comprehensive API for working conveniently with collections. A good understanding of some of the APIs is essential for making effective use of Scala in data analysis.
Although a full review of the Scala collection API is not part of the scope of this book, three key data structures will be covered in this section: the array, list, and map. The emphasis here is on their direct relevance to data analysis. For complete details, please refer to the official Scala resource at https://www.scala-lang.org/api/current/scala/collection/index.html.