如何在 Scala 中正确编码?
def myFun(strings: String*) = {
// do something...
}
def myWraper(strings: String*) = {
// do something else and then call myFun with the dame input
myFun(strings)
}
我试过放一个星号
def myWraper(strings: String*) = {
// do something else and then call myFun with the dame input
myFun(strings*)
}
但这似乎不起作用...