Functional Programming – 18: Magma, Semigroup, Monoid
6.3K views on YouTube
Algebraic Structures are another set of useful tools we use in Functional Programming. In this video we will look at 3 basic structures.
Magma is a Set of values with a binary operation that is closed on that Set.
Semigroup is a Magma in which the binary operation is associative.
Monoid is a Semigroup that has Empty or Neutral value.
In this Video:
– Algebraic Structures
– Magma
– Semigroup
– Monoid
Correction:
[1:48] – Real number and division is not a Magma, because dividing real number 12.0 by real number 0.0 doesn’t return a real number. Non-zero real numbers and division are Magma though.