Scala Default Parameter Skip One

[Solved] Scala Default Parameter Skip One | Scala - Code Explorer | yomemimo.com
Question : scala default parameter skip one

Answered by : filaseta-angelo

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.

Source : https://stackoverflow.com/questions/33402458/how-to-skip-optional-parameters-in-scala | Last Update : Thu, 02 Sep 21

Answers related to scala default parameter skip one

Code Explorer Popular Question For Scala