Strings In Depth8 / 18
Up next

Join a sequence

let words = ["swift", "is", "fun"]
// glue the elements with a separator
let sentence = words.joined(separator: " ")
print(sentence)
What you're solving

joined(separator:)