#include <kumi/functional/indexable.hpp>
Callable object computing the index map associated to the reduction operation.
#include <kumi/functional/indexable.hpp>
template<typename Count, typename N>
consteval auto reducer(Count c, N n)
noexcept;
struct kumi::function::reduce_t reducer
Callable object computing the index map associated to the reduction operation.
- c: Total reduced pairs processing for the current step
- n: Remainder if the number of values is odd
A kumi::projection_map segmenting the input domain in chunks of two consecutive elements plus the reminder.