[racket-dev] Character classification
On Tue, Sep 4, 2012 at 3:11 PM, Jens Axel Søgaard <jensaxel at soegaard.net> wrote:
> Since the R5RS version of char-numeric? (according to the documentation)
> tests for the ten digits, you can use:
>
> (require (only-in r5rs char-numeric?))
Thanks Jens Axel. However, the r5rs version appears to be the same as
the Racket version. Tested with:
========
#lang r5rs
(define (test)
(let again ((i 0))
(cond ((< i #xD800)
(let ((c (integer->char i)))
(cond ((char-numeric? c)
(display (list i c))
(newline)))
(again (+ i 1)))))))
========