char-code
character ⇒ code
character | a character. |
code | a character code. |
;; An implementation using ASCII character encoding
;; might return these values:
(char-code #\$) ⇒ 36
(char-code #\a) ⇒ 97
Should signal an error of type type-error if character is not a character.