DigitP

Help Contents Data Structure Primitives Predicates DigitP
CSymP GraphP

DigitP achar
Digit? achar


outputs true if the input is a character in the subset of numerical digit characters.

Examples:

digit? "a	;false  ;-)
digit? "A	;false  ;-)
digit? "1	;true  ;-)
digit? 1	;false  ;-)
digit? "ü	;true  ;-)	<= this seems to be a bug!!!
digit? "!	;false  ;-)
digit? char 13	;false  ;-)

CSymP GraphP