Summary
In this chapter, we have covered functional programming with Scala and how object-oriented and functional approaches complete each other. We also covered generic classes, which are often used with pattern matching. Finally, we covered how to create user-defined pattern matching and learned why is it useful.
In the next chapter, we'll cover important Scala collections such as
Sets
and
Maps
. We'll also discuss mutable and immutable collections and their applicability in Scala code.