Strings In Depth13 / 18
Up next

Split into pieces

let csv = "a,b,c"
// split returns [Substring], each a view into the original
let parts = csv.split(separator: ",")
print(parts.count)
print(parts[1])
What you're solving

split yields Substrings