Open ruricolist opened 4 years ago
Series seems like a good fit.
It does seem that way, but it may be necessary to make an internal fork to extend it to cooperate with Clojure's sequence protocols.
On the other hand. Lazy sequences are actually not that hard to implement. It's pretty much what is written in SICP chapter 3.5 (https://sarabander.github.io/sicp/html/3_002e5.xhtml). The question is what is the effort for that compared to making Series work.
Lazy sequences are already implemented in a basic way, but Clojure is a language that would greatly benefit from Series-style loop fusion.
Investigate using Series to implement lazy sequences.
If there's any language that could benefit from loop fusion, it's Clojure.