org.scalactic.algebra
Typeclass trait representing a binary operation that obeys the associative law.
The associative law states that given values a, b, and c of type A (and implicit Associative.adapters imported):
a
b
c
A
Associative.adapters
((a combine b) combine c) === (a combine (b combine c))
Note: In mathematics, the algebraic structure consisting of a set along with an associative binary operation is known as a semigroup.
A binary operation that obeys the associative law.
See the main documentation for this trait for more detail.
Typeclass trait representing a binary operation that obeys the associative law.
The associative law states that given values
a
,b
, andc
of typeA
(and implicitAssociative.adapters
imported):Note: In mathematics, the algebraic structure consisting of a set along with an associative binary operation is known as a semigroup.