RosettaCodeData/Task/Catamorphism/Forth/catamorphism-1.fth
2016-12-05 22:15:40 +01: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 ;