Dedekind 0.0.0
A structuralist C++23 Module Library
Loading...
Searching...
No Matches
dedekind::category::IsCopies Concept Referenceexport

A range of n copies of one value, Bird's replicate n x, whose fold under a monoid is the power \(x^n\); n and the value known without walking it: copies_count(r) and copies_value(r), which each model supplies, declared above so that ordinary lookup finds them for models outside this namespace, the standard's among them. More...

Concept definition

template<typename R>
concept dedekind::category::IsCopies = std::ranges::input_range<R> && requires(const R& r) {
{ copies_value(r) } -> std::convertible_to<std::ranges::range_value_t<R>>;
}
A range of n copies of one value, Bird's replicate n x, whose fold under a monoid is the power ; n an...
Definition total.cppm:1253
A word of the counts: an integer chain whose arithmetic wraps at its cyclic order,...
Definition chain.cppm:62
constexpr N copies_count(const unfold_view< N, Mapped< N, StepCoalgebra< N, Prior< N > >, F > > &r)
The counting chain of n under a constant arrow, n >> chain<N>() >> constant(x), is n copies of x,...
Definition total.cppm:1224

Detailed Description

A range of n copies of one value, Bird's replicate n x, whose fold under a monoid is the power \(x^n\); n and the value known without walking it: copies_count(r) and copies_value(r), which each model supplies, declared above so that ordinary lookup finds them for models outside this namespace, the standard's among them.

Template Parameters
Rthe range.