[Swift3] 配列を文字列で連結したい。
1 2 3 4 5 |
var arr = Array<String>() arr[0] = "A" arr[1] = "B" arr[2] = "C" let str = arr.joined(separator: ",") |
1 2 3 4 5 |
var arr = Array<String>() arr[0] = "A" arr[1] = "B" arr[2] = "C" let str = arr.joined(separator: ",") |