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