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