At 2018-05-16T07:32:43-07:00, Andrew Kent wrote:

> #lang racket/base
> (require (for-syntax racket/base racket/string)
>          racket/require)
> (require (filtered-in
>           (λ (name)
>             (string-replace name "->" "→"))
>          racket))
> (string→number "42")

Thank you.  I now have the following in my file:

#lang racket/base

(module syntax-transform racket/base
  (require racket/string)
  (provide arrow-beautify)
  (define (arrow-beautify string)
    (string-replace string "->" "→")))

(require racket/require (for-syntax 'syntax-transform))

(require (filtered-in arrow-beautify racket))

Running this file in Dr Racket, I get

> (string→symbol "map")

I get the same in Emacs/Geiser with `geiser-mode-switch-to-repl-and-enter'
(C-c C-a).

Thanks to everyone who replied!


N. Raghavendra <>,
Harish-Chandra Research Institute,

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 
For more options, visit

Reply via email to