At 2018-05-16T12:37:47+02:00, Jens Axel Søgaard wrote:

>     (require (filtered-in
>               (lambda (name)
>                 (and (regexp-match? #rx"^[a-z-]+$" name)
>                      (regexp-replace #rx"-" (string-titlecase name)
>     "")))
>               racket/base))

Thank you for the reply.  I tried this at the REPL, and got an error:

racket@> (require (filtered-in
                   (λ (name)
                     (string-replace name "->" "→"))
                  racket))

stdin::4186: filtered-in: not a require sub-form ...

racket@> (require racket/require)

racket@> (require (filtered-in
                   (λ (name)
                     (string-replace name "->" "→"))
                   racket))

string-replace: undefined; cannot reference undefined identifier ...

racket@> (require racket/string)

racket@> (require (filtered-in
                   (λ (name)
                     (string-replace name "->" "→"))
                   racket))

string-replace: undefined; cannot reference undefined identifier ...

Wonder what I am doing wrongly.

Raghu.

--
N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to