Answers for "scala default parameter skip one"

0

scala default parameter skip one

There's no way to skip the parameters, but you can use named parameters when you call your foo method, for example:

// Call foo with b = 5, c = 7 and the default value for a
foo(b = 5, c = 7)
edit - You asked specifically how to do this by positional assignment: this is not possible in Scala.
Posted by: Guest on August-26-2021

Code answers related to "Scala"

Browse Popular Code Answers by Language