A magma is a set with a binary operation. The magma trait is a type class for magmas,
which defines a single binary operation called op.
If an implicit object of type Magma[A] is in scope, then a binary operator |+|
corresponding to the magma operation is available for objects of type A.
A magma is a set with a binary operation. The magma trait is a type class for magmas, which defines a single binary operation called
op
. If an implicit object of typeMagma[A]
is in scope, then a binary operator|+|
corresponding to the magma operation is available for objects of typeA
.