CommutativeSemigroup<T> mixin

CommutativeSemigroup represents a commutative semigroup.

A semigroup is commutative if for all x and y, combine(x, y) == combine(y, x).

Superclass Constraints

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

combine(T x, T y) → T
Associative operation which combines two values.
inherited
combineN(T a, int n) → T
Return a combined with itself n times.
inherited
intercalate(T middle) Semigroup<T>
Return a Semigroup which inserts middle between each pair of elements.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reverse() Semigroup<T>
Return a Semigroup that reverses the order.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

instance<A>(A f(A a1, A a2)) → _CommutativeSemigroup<A>
Create a CommutativeSemigroup instance from the given function.
override