Welcome! Please see the About page for a little more info on how this works.

0 votes
in Clojure by

It would be great to have a flag similar to warn-on-reflection but for fold to warn when it reduces sequentially (not parallel).

2 Answers

0 votes
by

Comment made by: jare

Not sure what are requirements for fold to be parallelized but if it's associativity of the collection then the issue can be resolved by mentioning "associative?" predicate in the fold's doc-string.

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJ-2370 (reported by alex+import)
Welcome to Clojure Q&A, where you can ask questions and receive answers from members of the Clojure community.
...