At 2018-05-16T09:12:18-04:00, Alex Knauth wrote: > Here is a `transform-right-arrow-in` definition that transforms -> > into →: > > #lang racket > (require racket/require > racket/require-syntax > (for-syntax syntax/parse)) > > (begin-for-syntax > ;; String -> String > (define (transform-right-arrow name) > (regexp-replace* #rx"->" name "→"))) > > (define-require-syntax transform-right-arrow-in > (syntax-parser > [(transform-right-arrow-in require-spec) > #'(filtered-in transform-right-arrow require-spec)])) > > ;; Using it: > > (require (transform-right-arrow-in racket/base)) > > (symbol→string 'blubber)
Thanks, this works. However, at this stage of my experience with Racket, the direct `filtered-in' method suggested by Jens appears simpler and easier. As I said in an earlier message, I seem to be using it 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.