In this chapter, we enhanced our knowledge of functions in Scala. We started with the basic method and function definitions, investigated the difference between them, and looked at how Scala treats them. We also saw that Scala is intelligent enough to convert a method to a function whenever needed. Then we took the discussion further and talked about closures. We got to know what closures are and then we had a solid discussion regarding higher-order functions in Scala. That was essential as we were already using higher-order functions and we saw multiple forms of them. Afterwards, we looked at currying and talked about partially applied functions. We know that partially applied functions are different from partial functions and currying. So now we have a solid understanding of functions in Scala because we have investigated them thoroughly.
Now it's time to go further and learn about a few advanced functional constructs. The knowledge gained in this chapter will help us do that in...