— Seems pretty useless to have a constructor without params?
It depends. sometimes okay. but i wanted to test speed. seems its get inlined if passed params always same type
— Optimized, yes
— Passing different types will cause trouble
— Hi to everyone 😃! I've tested the power of sync and async generators (es8) making something similar to transducers, because you can compose adjacent map, filter and reduce. You can find the code here: https://github.com/jfet97/jducers
A little feedback will be appreciated. Unfortunately yield is still not an efficient operation so I don't think that for now my library could be useful. But it is possible to see what es8 nowadays can do.