Scala – Function with named parameters

In Scala, we can write the function with default parameters as we have seen in the last post.Now, we will see how to pass parameters with some name. We can pass named parameters in any order and can also pass parameters without name. Let’s understand with an example.

Scala - Function parameter with Default Value
Scala Closure
Shekhar Sharma

Shekhar Sharma

Shekhar Sharma is founder of This website is his window to the world. He believes that ,"Knowledge increases by sharing but not by saving".

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *