CommutativeMonoid
A trait for types that form a commutative monoid.
Instances
instance CommutativeMonoid[Unit]
Sourceinstance CommutativeMonoid[Int8]
Sourceinstance CommutativeMonoid[Int16]
Sourceinstance CommutativeMonoid[Int32]
Sourceinstance CommutativeMonoid[Int64]
Sourceinstance CommutativeMonoid[BigInt]
Sourceinstance CommutativeMonoid[Float32]
Sourceinstance CommutativeMonoid[Float64]
Sourceinstance CommutativeMonoid[BigDecimal]
Sourceinstance CommutativeMonoid[(a1, a2)] with CommutativeMonoid[a1], CommutativeMonoid[a2]
Sourceinstance CommutativeMonoid[(a1, a2, a3)] with CommutativeMonoid[a1], CommutativeMonoid[a2], CommutativeMonoid[a3]
Sourceinstance CommutativeMonoid[(a1, a2, a3, a4)] with CommutativeMonoid[a1], CommutativeMonoid[a2], CommutativeMonoid[a3], CommutativeMonoid[a4]
Sourceinstance CommutativeMonoid[(a1, a2, a3, a4, a5)] with CommutativeMonoid[a1], CommutativeMonoid[a2], CommutativeMonoid[a3], CommutativeMonoid[a4], CommutativeMonoid[a5]
Sourceinstance CommutativeMonoid[(a1, a2, a3, a4, a5, a6)] with CommutativeMonoid[a1], CommutativeMonoid[a2], CommutativeMonoid[a3], CommutativeMonoid[a4], CommutativeMonoid[a5], CommutativeMonoid[a6]
Sourceinstance CommutativeMonoid[(a1, a2, a3, a4, a5, a6, a7)] with CommutativeMonoid[a1], CommutativeMonoid[a2], CommutativeMonoid[a3], CommutativeMonoid[a4], CommutativeMonoid[a5], CommutativeMonoid[a6], CommutativeMonoid[a7]
Sourceinstance CommutativeMonoid[(a1, a2, a3, a4, a5, a6, a7, a8)] with CommutativeMonoid[a1], CommutativeMonoid[a2], CommutativeMonoid[a3], CommutativeMonoid[a4], CommutativeMonoid[a5], CommutativeMonoid[a6], CommutativeMonoid[a7], CommutativeMonoid[a8]
Sourceinstance CommutativeMonoid[(a1, a2, a3, a4, a5, a6, a7, a8, a9)] with CommutativeMonoid[a1], CommutativeMonoid[a2], CommutativeMonoid[a3], CommutativeMonoid[a4], CommutativeMonoid[a5], CommutativeMonoid[a6], CommutativeMonoid[a7], CommutativeMonoid[a8], CommutativeMonoid[a9]
Sourceinstance CommutativeMonoid[(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)] with CommutativeMonoid[a1], CommutativeMonoid[a2], CommutativeMonoid[a3], CommutativeMonoid[a4], CommutativeMonoid[a5], CommutativeMonoid[a6], CommutativeMonoid[a7], CommutativeMonoid[a8], CommutativeMonoid[a9], CommutativeMonoid[a10]
Sourceinstance CommutativeMonoid[Map[k, v]] with Order[k], CommutativeMonoid[v]
Sourceinstance CommutativeMonoid[MultiMap[k, v]] with Order[k], Order[v]
Sourceinstance CommutativeMonoid[Option[a]] with CommutativeMonoid[a]
Sourceinstance CommutativeMonoid[Any]
Sourceinstance CommutativeMonoid[All]
Sourceinstance CommutativeMonoid[Set[a]] with Order[a]
SourceTrait Definitions
def combine(x: a, y: a): a with CommutativeMonoid[a]
SourceAn associative & commutative binary operation on a
.
def empty(): a with CommutativeMonoid[a]
SourceReturns a neutral element.