AdditiveSemigroup

algebra.ring.AdditiveSemigroup
See theAdditiveSemigroup companion object

Attributes

Companion
object
Source
Additive.scala
Graph
Supertypes
trait Serializable
class Any
Known subtypes
trait Rng[A]
trait CommutativeRng[A]
trait BoolRng[A]
class SetBoolRng[A]
class BoolRingFromBool[A]
trait BoolRing[A]
trait CommutativeRing[A]
class ByteAlgebra
class IntAlgebra
class LongAlgebra
class ShortAlgebra
class UnitAlgebra
trait GCDRing[A]
trait EuclideanRing[A]
trait Field[A]
class FloatAlgebra
trait Ring[A]
trait DivisionRing[A]
trait Semiring[A]
class MapSemiring[K, V]
class SetSemiring[A]
trait CommutativeRig[A]
trait Rig[A]
trait Semifield[A]
trait AdditiveMonoid[A]
class MapAdditiveMonoid[K, V]
trait AdditiveGroup[A]
Show all

Members list

Value members

Abstract methods

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

Attributes

Source
Additive.scala

Concrete methods

Attributes

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

Attributes

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

Source
Additive.scala