RosettaCodeData/Task/Catamorphism/Forth/catamorphism-1.fth
2023-07-01 13:44:08 -04:00

5 lines
126 B
Forth

: lowercase? ( c -- f )
[char] a [ char z 1+ ] literal within ;
: char-upcase ( c -- C )
dup lowercase? if bl xor then ;