Open myhau opened 9 years ago
I've looked at the code-base, and I've had the same thought myself in terms of how nice it would be to have chained sequence transformations separate from the sequence itself. Based on the implementation however (and I could be wrong) - creating that separation would be a huge and unlikely undertaking.
If I understand correctly, this sounds like pretty much the same request as #215.
My understanding of OP's request at the time was exactly what you addressed here. Since then I've learned about functional programming however and think a better explanation of transducers can be found here. It's way different from what I initially understood them to mean, and is pretty much how you have designed Lazy.js from the beginning.
Could you add support for transducers ?