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
If somebody asks you to change a 10 cent coin and you have an unlimited number of 1 cent coins, 2 cent coins, and 5 cent coins, in how many
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
https://gist.github.com/sallos-cyber/d2bc782f09688beefb4e66068af03174