1
2
3
4
5
//above swift 5.3
let string = "Hello world"
let characters = Array(string)
print(characters)
1
2
3
4
5
var array = ["1", "2", "3"]
let stringRepresentation = "-".join(array) // "1-2-3"
1
2
3
4
5
//above swift 5.3
let string = "Hello world"
let characters = Array(string)
print(characters)
1
2
3
4
5
var array = ["1", "2", "3"]
let stringRepresentation = "-".join(array) // "1-2-3"
A new version of content is available.