Basic module

is_digit

procedureSource

Whether c is an ASCII digit, 0 to 9.

is_digit :: (c: u8) -> bool

Parameters

c: u8

Returns

bool
Example↗
assert(is_digit(#char "7") && !is_digit(#char "x"));

See also