3 ms·
A monoid is a set S with an associative binary operation and a unit. For instance, strings with string concatenation and the empty string form a monoid. Functi
by siraben 6y ago
A monoid is a set S with an associative binary operation and a unit. For instance, strings with string concatenation and the empty string form a monoid.
Functions form a monoid as well. Function composition is associative and id is the unit.