Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



#functions #named-arguments #scala
printInt(b=5, a=7);
If you want to change selection, open document below and click on "Move attachment"

Scala Functions with Named Arguments
uments to a function in a different order. The syntax is simply that each argument is preceded by a parameter name and an equals sign. Following is a simple example to show the concept: object Test { def main(args: Array[String]) { <span>printInt(b=5, a=7); } def printInt( a:Int, b:Int ) = { println("Value of a : " + a ); println("Value of b : " + b ); } } When the above code is compiled and executed,


Summary

statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Details



Discussion

Do you want to join discussion? Click here to log in or create user.