At 2018-05-16T07:32:43-07:00, Andrew Kent wrote:
> #lang racket/base
> (require (for-syntax racket/base racket/string)
> (require (filtered-in
> (λ (name)
> (string-replace name "->" "→"))
> (string→number "42")
Thank you. I now have the following in my file:
(module syntax-transform racket/base
(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'
Thanks to everyone who replied!
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
For more options, visit https://groups.google.com/d/optout.