Scala – Pass parameter by value or by name
In Scala function parameters are passed by value, that means that the parameters are evaluated before are passed to the function. Sometimes this is not the best behaviour. Fortunately, Scala lets you pass parameters by name if you need it Read More …