Std.MonoidA monoid set.
A monoid is a set closed under an associative binary operation plus and a zero element that is neutral to the plus operation.
Good examples are numeric types with addition and zero, or multiplication and one, see Monoid.Int.Sum, Monoid.Int.Product, Monoid.Float.Sum, Monoid.Float.Product.
Containers are also usually form a monoid with an empty container being a neutral element, and the being the closure, e.g., Monoid.List, Monoid.Stack, Monoid.String, Monoid.Set.
module type Base = sig ... endThe minimal monoid interface
module type S = sig ... endThe monoid interface
Make(Base) derives a monoid from its minimal definition
module Stack : sig ... endA list monoid that accumulates data in a reversed order.
module List : sig ... endA monoid that accumulates data in a list.
module Set : sig ... endA set monoind.
module Int : sig ... endProvides monoids in the Z domain.
module Float : sig ... endProvides monoids in the R domain.