Closed DenisYaroshevskiy closed 1 year ago
Recent code in kyosu showed we do need that.
sampl implem
return kumi::sum( kumi::extract(t,kumi::index<1>), get<0>(t));
@DenisYaroshevskiy I think no init fold means the operation you do on your values are limited cause the 1st value never got passed to any function, right ?
For the balanced one, it can be fold and it is a great idea
Meanwhile, I'll push a PR that no-init all the named reduction
Why isn't it past? Fold takes a 2 argument op
nvm i am stupid
Also balanced reduction can be awfully nice! (fold_balanced?) Smth like: https://github.com/jfalcou/eve/blob/d75ab0f23e472bfe04f406aeb5b7e0e90671a574/include/eve/module/algo/algo/array_utils.hpp#L54-L58