How do I “join” an iterable of strings by another string in Scala?

val thestrings = Array("a","b","c")
val joined = ???
println(joined)

I want this code to output a,b,c (join the elements by “,”).

1 Answer
1

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *