📜  scala 默认参数跳过一个 - Scala 代码示例

📅  最后修改于: 2022-03-11 15:00:57.061000             🧑  作者: Mango

代码示例1
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.