Skip to content

Conversation

@anicusan
Copy link
Member

@anicusan anicusan commented Feb 5, 2025

Adding neutral to distinguish between the op zero and init as an initially-accumulated value, which is now respected. Added tests for this. This is unfortunately a breaking change, as some code that was only using init before with custom op will now need to define neutral as well - hence the version change. Merged reduce into mapreduce. any and all now specify an alg like accumulate does, which is more elegant and future-proof (and breaking too, yay). Added comments on using const.

…e to distinguish between the op zero and `init` as an initially-accumulated value, which is now respected. Added tests for this. This is unfortunately a breaking change, as some code that was only using `init` before with custom `op` will now need to define `neutral` as well - hence the version change. Merged reduce into mapreduce. `any` and `all` now specify an `alg` like `accumulate` does, which is more elegant and future-proof (and breaking too, yay). Added comments on using `const`.
@anicusan anicusan merged commit 6661069 into main Feb 5, 2025
31 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants