how do I convert this string to an array of characters ignoring the first 2 characters and line breaks (\n) or spaces ? so I do have this:
var leds = """
1 1
XXX
000
00X
"""
to return this to me as a result:
['x','x','x','0','0','0','0','0','x']
I have this, but it doesn't ignore the spaces, line breaks or the number of the first line:
let characters = Array(leds)
print(characters)
thank you very much in advance