instance<A> static method

CommutativeMonoid<A> instance<A>(
  1. A emptyValue,
  2. A f(
    1. A a1,
    2. A a2
    )
)
override

Create a CommutativeMonoid instance from the given function and empty value.

Implementation

static CommutativeMonoid<A> instance<A>(
        A emptyValue, A Function(A a1, A a2) f) =>
    _CommutativeMonoid(emptyValue, f);