Adjoining a zero/one to semigroups and mapping #
Lift a map f : α → β to WithOne α → WithOne β. Implemented using Option.map.
Note: the definition previously known as WithOne.map is now called WithOne.mapMulHom.
Equations
- WithOne.map f = Option.map f
Instances For
Lift a map f : α → β to WithZero α → WithZero β. Implemented using Option.map.
Note: the definition previously known as WithZero.map is now called WithZero.mapAddHom.
Equations
- WithZero.map f = Option.map f