Difference between function and method
In Scala you can create functions using a so-called “function literal” E.g. Such an expression is called: function literal lambda function anonymous function Under the hood, that is by the […]
In Scala you can create functions using a so-called “function literal” E.g. Such an expression is called: function literal lambda function anonymous function Under the hood, that is by the […]
In the above class definition ‘val’ means, that the class has the fields head and tail. Without ‘val’ those fields are private. So ‘val’ is a way to define a
This information is based on the coursera course “Functional Programming Principles in Scala” by Martin Odersky. In Scala expressions* are evaluated by the Scala interpreter following the substitution model. What