Scala – Functions with Named Arguments
In this guide, we will discuss Scala Functions with Named Arguments. In a normal function call, the arguments in the call are matched one by one in the order of…
In this guide, we will discuss Scala Functions with Named Arguments. In a normal function call, the arguments in the call are matched one by one in the order of…
In this guide, we will discuss Scala Partially Applied Functions. When you invoke a function, you're said to be applying the function to the arguments. If you pass all the…
In this guide, we will discuss Scala Nested Functions. Scala allows you to define functions inside a function and functions defined inside other functions are called local functions. Here is an…
In this guide, we will discuss Scala Default Parameter Values for a Function. Scala lets you specify default values for function parameters. The argument for such a parameter can optionally…
In this guide, we will discuss Scala Function with Variable Arguments. Scala allows you to indicate that the last parameter to a function may be repeated. This allows clients to…
In this guide, we will discuss Scala Functions Call-by-Name. Typically, parameters to functions are by-value parameters; that is, the value of the parameter is determined before it is passed to…
In this guide, we will discuss Scala Functions. A function is a group of statements that perform a task. You can divide up your code into separate functions. How you…
In this guide, we will diiscuss Scala break statement. As such there is no built-in break statement available in Scala but if you are running Scala version 2.8, then there…
In this guide, we will discuss Scala for loops. A for loop is a repetition control structure that allows you to efficiently write a loop that needs to execute a specific number…
In this guide, we will discuss Scala do-while Loop. Unlike while loop, which tests the loop condition at the top of the loop, the do-while loop checks its condition at the bottom of the…