CommutativeMonoid

Companion:
class

Value members

Concrete methods

final def apply[A](implicit ev: CommutativeMonoid[A]): CommutativeMonoid[A]

Access an implicit CommutativeMonoid[A].

Access an implicit CommutativeMonoid[A].

def instance[A](emptyValue: A, cmb: (A, A) => A): CommutativeMonoid[A]

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

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

Inherited methods

def combine[@specialized(Int, Long, Float, Double) A](x: A, y: A)(implicit ev: CommutativeMonoid[A]): A
Inherited from:
SemigroupFunctions
Inherited from:
MonoidFunctions
def combineAllOption[A](as: IterableOnce[A])(implicit ev: CommutativeMonoid[A]): Option[A]
Inherited from:
SemigroupFunctions
def combineN[@specialized(Int, Long, Float, Double) A](a: A, n: Int)(implicit ev: CommutativeMonoid[A]): A
Inherited from:
SemigroupFunctions
def empty[@specialized(Int, Long, Float, Double) A](implicit ev: CommutativeMonoid[A]): A
Inherited from:
MonoidFunctions
def isCommutative[A](implicit ev: CommutativeMonoid[A]): Boolean
Inherited from:
SemigroupFunctions
def isEmpty[@specialized(Int, Long, Float, Double) A](a: A)(implicit m: CommutativeMonoid[A], ev: Eq[A]): Boolean
Inherited from:
MonoidFunctions
def isIdempotent[A](implicit ev: CommutativeMonoid[A]): Boolean
Inherited from:
SemigroupFunctions
def maybeCombine[@specialized(Int, Long, Float, Double) A](x: A, oy: Option[A])(implicit ev: CommutativeMonoid[A]): A
Inherited from:
SemigroupFunctions
def maybeCombine[@specialized(Int, Long, Float, Double) A](ox: Option[A], y: A)(implicit ev: CommutativeMonoid[A]): A
Inherited from:
SemigroupFunctions