You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
huri.core/extent uses clojure.core.reducers/fold in its implementation. However, no possible inputs can trigger actual parallel folding; extent always degenerates to plain reduce. This is because all inputs result in r/fold being applied to a sequence, which is not a foldable collection.
Furthermore, if the parallel fold were actually triggered, extent would always throw an exception because the combining function (here same as the reducing function) doesn’t work.
To address this the alternatives are:
Replace r/fold with reduce.
Allow foldable inputs to be passed through to r/fold and supply an appropriate combining function.
The text was updated successfully, but these errors were encountered:
huri.core/extent
usesclojure.core.reducers/fold
in its implementation. However, no possible inputs can trigger actual parallel folding;extent
always degenerates to plain reduce. This is because all inputs result inr/fold
being applied to a sequence, which is not a foldable collection.Furthermore, if the parallel fold were actually triggered,
extent
would always throw an exception because the combining function (here same as the reducing function) doesn’t work.To address this the alternatives are:
r/fold
with reduce.r/fold
and supply an appropriate combining function.The text was updated successfully, but these errors were encountered: