最佳答案
我如何“加入”一个迭代的字符串由另一个字符串在Scala?
val thestrings = Array("a","b","c")
val joined = ???
println(joined)
我希望这段代码输出a,b,c
(通过“,”连接元素)。