Basic module

to_upper

procedure · 1 overloadSource

The capital for an ASCII lower case letter c; any other byte is returned as it is, so non-ASCII text is not changed.

to_upper :: (c: u8) -> u8

Parameters

c: u8

Returns

u8
ExampleOpen in playground ↗
assert(to_upper(#char "a") == #char "A");
assert(to_upper(#char "1") == #char "1");

See also