I just want to get the ASCII value of a single char string in Swift. This is how I\'m currently doing it:
var singleChar = \"a\" println(singleChar.unicodeSc
Swift 4.1
https://oleb.net/blog/2017/11/swift-4-strings/
let flags = "99_problems" flags.unicodeScalars.map { "\(String($0.value, radix: 16, uppercase: true))" }
Result:
["39", "39", "5F", "70", "72", "6F", "62", "6C", "65", "6D", "73"]