How can I get the nth character of a string? I tried bracket([]) accessor with no luck.
[]
var string = \"Hello, world!\" var firstChar = string[
I just came up with this neat workaround
var firstChar = Array(string)[0]