In this blog we discuss about different ways of passing arguments in function call in scala. Call-by-Value By default scala use call-by-value for passing arguments to a function.Here is a function adder that uses the call-by-value strategy. The Call-by-value function evaluate the passed-in expression value before calling the function, so that same value accessed every time.Above […]

Read more of this post