Is it possible to have piping in Racket with output of one function going to next. For example, can following code be rewritten:
(define (safestr sentstr)
(list->string
(remove*
(list #\| #\; #\: #\/ #\\ #\' #\")
(string->list sentstr) )))
(define (safestr sentstr)
sentstr |
(string->list .) |
(remove* (list #\: #\;) .) |
(list->string .) )
Where "." indicates output of previous statement.
This also shows normal direction of flow and progress rather than reverse flow.
Racket being language to create languages should be able to do this. I checked here https://docs.racket-lang.org/reference/pipeports.html but could not find how to do this.
Thanks for your comments/answers.