Chapter 4
Scala Collections
Section 4
Abstracting on Sequences
All Scala collections descend from a common trait called Traversable. The design adopted for Scala collections allows one to use higher-order functions similarly in nearly all collections, with proper return types in specific instances. Treating collections as sequences, or as containers of elements, allows one to use different data structures seamlessly. Let's learn more about them in detail in this video.