NSString/NSArrayの時と比べると大分タイプ数が減ってすっきりしました。
joinとsplitはビルドイン関数になりました。
文字列の分割 split
NSArray(旧)
let csvRow = "one,two,three" as NSString
let cells = csvRow.componentsSeparatedByString(",")
// ["one","two","three"]
Array(新)
let csvRow = "one,two,three"
let cells = split(csvRow, { $0 == "," })
// ["one","two","three"]
文字列の連結 join
NSArray(旧)
let cells = ["one", "two", "three"] as NSArray
let csvRow = cells.componentsJoinedByString(",")
// "one,two,three"
Array(新)
let cells = ["one", "two", "three"]
let csvRow = join(",", cells)
// "one,two,three"