4 ms·
It is! It's the main way of programming in lazy functional programming languages like Haskell And many programming languages have libraries for something simil
by arianvanp 8y ago
It is! It's the main way of programming in lazy functional programming languages like Haskell
And many programming languages have libraries for something similar:. iterators in rust / c++, streams in java/c#, thinks like reactive
- benj111 8y agoHaskell was the only possible I found. Iterators don't really fully capture what a pipe is though? Theres no parallelism. And streams don't have the conceptual simplicity of a pipe?
- masklinn 8y ago> Iterators don't really fully capture what a pipe is though? Theres no parallelism. Pipes are concurrent, not necessarily parallel. Iterators are concurrent, and can be parallel (https://docs.rs/rayon/0.6.0/rayon/par_iter/index.html https://docs.rs/rayon/0.6.0/rayon/par_iter/index.html).