better_collect — fold declaratively

93 points discreaminant2809 16 comments

My first time posting something on Reddit so I’m quite shy 😄

Anyway, my crate’s idea is simple: you can calculate sum and max of an array in one pass, declaratively, and more.

I don’t know what else to tell so how about checking it on crates.io. I’m open as possible to receive your feedbacks! The crate is still early.

Note: on GitHub the main branch isn’t merged yet, so it still shows the previous version. You can check the nightly branch in the mean time. At the time of this post, the version is 0.2.0.