Ways to define a function

To provide some common ground for the readers with different levels of Scala knowledge, let's recap how a function can be defined. We'll start with the basic approaches such as defining a method and placing it in different scopes to create a local function. Then we'll look at more interesting aspects, for example closing over scope, partial application, different ways to specify function literals, and, finally, currying.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.139.224