|
Dedekind 0.0.0
A structuralist C++23 Module Library
|
The formal structure of an Arrow f: A -> B. More...
Public Types | |
| using | Domain = A |
| using | Codomain = B |
Public Member Functions | |
| constexpr | Morphism (Func f) |
| constexpr bool | operator== (const Morphism &) const =default |
Two morphisms are equal when their callables are: decidable for a function pointer, deleted for a closure (:cartesian's Arrows). | |
| constexpr | Morphism ()=default |
Default-constructible when the callable is, so that an arrow wrapping an empty function object (endo<T>(std::negate<T>{})) is semiregular, which a chain's coalgebra must be (:nno). | |
| constexpr Codomain | operator() (const Domain &x) const |
Public Attributes | |
| Func | transform |
The formal structure of an Arrow f: A -> B.