title: How can I get the Unicode code point(s) of a Character?
body: <p>How can I extract the Unicode code point(s) of a given <code>Character</code> without first converting it to a <code>String</code>? I know that I can use the following:</p>
  
  <pre><code>let ch: Character = "A"
  let s = String(ch).unicodeScalars
  s[s.startIndex].value // returns 65
  </code></pre>
  
  <p>but it seems like there should be a more direct way to accomplish this using just Swift's standard library. The Language Guide sections <a href="https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/StringsAndCharacters.html#//apple_ref/doc/uid/TP40014097-CH7-XID_376" rel="noreferrer">"Working with Characters"</a> and <a href="https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/StringsAndCharacters.html#//apple_ref/doc/uid/TP40014097-CH7-XID_387" rel="noreferrer">"Unicode"</a> only discuss iterating through the characters in a <code>String</code>, not working directly with <code>Character</code>s.</p>