dtao / lazy.js

Like Underscore, but lazier
http://danieltao.com/lazy.js/
MIT License
6.01k stars 268 forks source link

Add support for transducers #152

Open myhau opened 9 years ago

myhau commented 9 years ago

Could you add support for transducers ?

olsonpm commented 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.

dtao commented 6 years ago

If I understand correctly, this sounds like pretty much the same request as #215.

olsonpm commented 6 years ago

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.