What is an elegant way of converting a character from int, and int to character?
for example, for an often operation of a -> 0, how do i convert this in swift? And how do i convert 0 -> a?
Currently i use unicode to achieve what i want..
let int = char.unicodeScalars.first!.value - 65
65 is the uniscalar code number of "A", But i find this really verbose.
Anyone knows a better way of dealing with this kind of stuff in swift?