What is a Monoid
if you have this 3 things T, concat and empty together, you have a monoid:
- T — Set of values for example set of strings, or set of array etc,
- concat — Function which takes 2 values from that set T, and returns new value which is in the same set T, such that this function is Associative.
- empty — special value from…