Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
I have user array and I want concat values with ','
for s in userArray { }
I want the result be A,B,C,D
How could I do this in Swift 3?
joined
Use the array joined(separator:) function
let joined = stringArray.joined(separator: ", ")
Add a comment
let joined = userArray.map { $0.email }.joined(separator: ",")
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.
joinedfunction.