charToInt
lib.strings.charToInt
Docs pulled from | This Revision | 10 minutes ago
Convert char to ascii value, must be in printable range
Inputs
c
- 1. Function argument
Type
charToInt :: string -> int
Examples
lib.strings.charToInt
usage example
charToInt "A"
=> 65
charToInt "("
=> 40
Noogle detected
Implementation
The following is the current implementation of this function.
charToInt = c: builtins.getAttr c asciiTable;