Basic module

is_alpha

procedure · 1 overloadSource

Whether c is an ASCII letter. Bytes of UTF-8 text above 127 are not letters.

is_alpha :: (c: u8) -> bool

Parameters

c: u8

Returns

bool
ExampleOpen in playground ↗
assert(is_alpha(#char "x") && !is_alpha(#char "7") && !is_alpha(#char "_"));

See also