AdditiveCommutativeSemigroup

algebra.ring.AdditiveCommutativeSemigroup
See theAdditiveCommutativeSemigroup companion object

Attributes

Companion:
object
Source:
Additive.scala
Graph
Supertypes
class Any
Known subtypes

Members list

Concise view

Value members

Concrete methods

Attributes

Definition Classes
Source:
Additive.scala

Inherited methods

def plus(x: A, y: A): A

Attributes

Inherited from:
AdditiveSemigroup
Source:
Additive.scala
def sumN(a: A, n: Int): A

Attributes

Inherited from:
AdditiveSemigroup
Source:
Additive.scala
def trySum(as: IterableOnce[A]): Option[A]

Given a sequence of as, combine them and return the total.

Given a sequence of as, combine them and return the total.

If the sequence is empty, returns None. Otherwise, returns Some(total).

Attributes

Inherited from:
AdditiveSemigroup
Source:
Additive.scala