The coalgebra of a partial step \(X \to 1 + X\): the element, and the step as the next state, while the step has a value. Turns Prior, lower_cover or cover into a lens.
More...
template<std::regular X, std::semiregular Step>
requires std::regular_invocable<const
Step&, const X&> && std::same_as<std::invoke_result_t<const
Step&, const X&>, std::optional<X>>
struct dedekind::category::StepCoalgebra< X, Step >
The coalgebra of a partial step \(X \to 1 + X\): the element, and the step as the next state, while the step has a value. Turns Prior, lower_cover or cover into a lens.
- Template Parameters
-
| X | the carrier. |
| Step | the partial step. |