|
|
|
|
|
by Blikkentrekker
3 days ago
|
|
I feel languages should just have some kind of sugar or operator for this, in fact in Ocaml the |> operator exists where <exp> |> <exp2>
<exp2>(<exp>)
Are just one and the sameFor a variadic language you'd need something more involved though. But some kind of syntax can probably be invented in some language. |
|
[0] https://github.com/dtenny/clj-arrows
[1] https://docs.racket-lang.org/threading/index.html
[2] https://srfi.schemers.org/srfi-197/srfi-197.html