3 ms·
You'd love threading macros in Racket: https://docs.racket-lang.org/threading/index.html https://docs.racket-lang.org/threading/index.html It's like Unix pipes
by sdsd 1y ago
You'd love threading macros in Racket: https://docs.racket-lang.org/threading/index.html https://docs.racket-lang.org/threading/index.html
It's like Unix pipes for functions:
(~> "hello"
(string-ref 1)
(char->integer))
- klibertp 1y agoObviously, also available in CL, in Serapeum library[1]. Racket is credited in the docstring (since it's ~> instead of ->). Also, `nest` works very well for unnesting forms[2] [1] https://github.com/ruricolist/serapeum/blob/master/control-flow.lisp#L688 https://github.com/ruricolist/serapeum/blob/master/control-f... [2] https://github.com/ruricolist/serapeum/blob/master/REFERENCE.md#nest-rest-things https://github.com/ruricolist/serapeum/blob/master/REFERENCE...