最佳答案
给定一个接受可变数量参数的函数,例如。
def foo(os: String*) =
println(os.toList)
如何将一系列参数传递给函数:
val args = Seq("hi", "there")
foo(args)
很明显,这样不行。