query
On this page

charToInt

lib.strings.charToInt

Docs pulled from | This Revision | about 1 hour ago


Convert char to ascii value, must be in printable range

Inputs

c

1. Function argument

Type

charToInt :: string -> int

Examples

charToInt usage example

charToInt "A"
=> 65
charToInt "("
=> 40