let cast = ["Vivien", "Marlon", "Kim", "Karl"]
let list = cast.joined(separator: ", ")
print(list)
/// Prints "Vivien, Marlon, Kim, Karl"
let cast = ["Vivien", "Marlon", "Kim", "Karl"]
let list = cast.joined(separator: ", ")
print(list)
/// Prints "Vivien, Marlon, Kim, Karl"
本文标题:Swift Array Joined
本文链接:https://www.haomeiwen.com/subject/ilnhoktx.html
网友评论