[racket-dev] Character classification

From: Pierpaolo Bernardi (olopierpa at gmail.com)
Date: Tue Sep 4 09:52:37 EDT 2012

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))
             (again (+ i 1)))))))

Posted on the dev mailing list.