selfrefactor / rambda

Faster and smaller alternative to Ramda
https://selfrefactor.github.io/rambda
MIT License
1.65k stars 89 forks source link

RFC: reduced #630

Closed agriffis closed 2 years ago

agriffis commented 2 years ago

Ability to short circuit reduce like https://clojuredocs.org/clojure.core/reduced

Probably has an impact on reduce benchmark, hopefully small. It's a trade off for the ability to short-circuit.

I probably haven't editing all the files I should, looking for initial reaction first.

selfrefactor commented 2 years ago

I really like your suggestion. I'll try to create TS tests for your PR and I'll get back to you, but I have initial impression that in the case of this PR, there will be no new TS tests, so we should be good to go. Also, if you have more such suggestions inspired from Closure please bring them up.

selfrefactor commented 2 years ago

I will deploy this feature with upcoming 7.2.0 version. I will write again here once that happens.

selfrefactor commented 2 years ago

deployed with 7.2.0