I need to find the position of a character in a string and to return an Int for further calculation.
let idx = cycleOrder.characters.indexOf(charInput)
This gives me the index, but how do I get this into an Int?
I tried:
intIdx = Int(idx)
but that doesn't work.