In mathematics, a magma is kind of algebraic structure. It is a set with a binary operation on that set.

A binary operation works by taking two elements from a set (that do not have to be different) and returning some other element of that set.

If we give the set a label (such as X) and the binary operation a label (such as •). Then we give the magma the label (X, •).