txt: ## ords.md
  ords
  
  Combined from primary sources listed below.
  
  # [In Str](#___top "go to top of document")[§](#(Str)_method_ords "direct link")
  
  See primary documentation
  [in context](/type/Str#method_ords)
  for **method ords**.
  
  ```raku
  multi method ords(Str:D: --> Seq)
  ```
  
  Returns a list of Unicode codepoint numbers that describe the codepoints making up the string.
  
  Example:
  
  ```raku
  "aå«".ords; # (97 229 171)
  ```
  
  Strings are represented as graphemes. If a character in the string is represented by multiple codepoints, then all of those codepoints will appear in the result of `ords`. Therefore, the number of elements in the result may not always be equal to [chars](/routine/chars), but will be equal to [codes](/routine/codes); [codes](/routine/codes) computes the codepoints in a different way, so the result might be faster.
  
  The codepoints returned will represent the string in [`NFC`](/type/NFC). See the [`NFD`](/type/NFD), [`NFKC`](/type/NFKC), and [`NFKD`](/type/NFKD) methods if other forms are required.
  
  # [In Cool](#___top "go to top of document")[§](#(Cool)_routine_ords "direct link")
  
  See primary documentation
  [in context](/type/Cool#routine_ords)
  for **routine ords**.
  
  ```raku
  sub ords(Str(Cool) $str)
  method ords()
  ```
  
  Coerces the invocant (or in the sub form, the first argument) to [`Str`](/type/Str), and returns a list of Unicode codepoints for each character.
  
  ```raku
  say "Camelia".ords;              # OUTPUT: «67 97 109 101 108 105 97␤»
  say ords 10;                     # OUTPUT: «49 48␤»
  ```
  
  This is the list-returning version of [ord](/routine/ord). The inverse operation in [chrs](/routine/chrs). If you are only interested in the number of codepoints, [codes](/routine/codes) is a possibly faster option.
  
  # [In Nil](#___top "go to top of document")[§](#(Nil)_method_ords "direct link")
  
  See primary documentation
  [in context](/type/Nil#method_ords)
  for **method ords**.
  
  Returns an empty [`Seq`](/type/Seq), but will also issue a warning depending on the context it's used (for instance, a warning about using it in string context if used with `say`).
  