Basic module

is_alnum

procedure · 1 overloadSource

Whether c is an ASCII letter or digit, or an underscore: whether it can appear in an identifier.

is_alnum :: (c: u8) -> bool

Parameters

c: u8

Returns

bool
ExampleOpen in playground ↗
assert(is_alnum(#char "a") && is_alnum(#char "9") && is_alnum(#char "_"));
assert(!is_alnum(#char "-"));

See also