|
Dedekind 0.0.0
A structuralist C++23 Module Library
|
A fold step lifted through Maybe: Maybe's eliminator with the cases \([\mathit{acc}, \mathit{op}(\mathit{acc}, \cdot)]\), a hole leaving the accumulator as it is. Written once, so the folds that end a query take their plain steps and none cases on a hole.
More...

Public Member Functions | |
|
template<std::semiregular R, typename A> requires std::convertible_to< std::invoke_result_t<const Op&, const R&, const A&>, R> | |
| constexpr R | operator() (const R &acc, const Maybe< A > &mx) const |
Public Attributes | |
| Op | op |
A fold step lifted through Maybe: Maybe's eliminator with the cases \([\mathit{acc}, \mathit{op}(\mathit{acc}, \cdot)]\), a hole leaving the accumulator as it is. Written once, so the folds that end a query take their plain steps and none cases on a hole.
| Op | the step. |