forAdditiveCommutativeMonoid
algebra.ring.Signed$.forAdditiveCommutativeMonoid
trait forAdditiveCommutativeMonoid[A] extends Signed[A], AdditiveCommutativeMonoid[A]
Signed implementation for additive commutative monoids
Attributes
- Source
- Signed.scala
- Graph
-
- Supertypes
-
trait AdditiveCommutativeMonoid[A]trait AdditiveCommutativeSemigroup[A]trait AdditiveMonoid[A]trait AdditiveSemigroup[A]trait Serializabletrait Signed[A]class AnyShow all
- Known subtypes
Members list
Value members
Concrete methods
Attributes
- Definition Classes
- Source
- Signed.scala
Returns 0 if a
is 0, 1 if a
is positive, and -1 is a
is negative.
Inherited methods
An idempotent function that ensures an object has a non-negative sign.
An idempotent function that ensures an object has a non-negative sign.
Attributes
- Inherited from:
- Signed
- Source
- Signed.scala
Attributes
- Definition Classes
- Inherited from:
- AdditiveCommutativeMonoid
- Source
- Additive.scala
Attributes
- Inherited from:
- Signed
- Source
- Signed.scala
Attributes
- Inherited from:
- Signed
- Source
- Signed.scala
Attributes
- Inherited from:
- Signed
- Source
- Signed.scala
Attributes
- Inherited from:
- Signed
- Source
- Signed.scala
Attributes
- Inherited from:
- Signed
- Source
- Signed.scala
Attributes
- Inherited from:
- Signed
- Source
- Signed.scala
Tests if a
is zero.
Attributes
- Inherited from:
- Signed
- Source
- Signed.scala
Attributes
- Inherited from:
- AdditiveSemigroup
- Source
- Additive.scala
Returns Zero if a
is 0, Positive if a
is positive, and Negative is a
is negative.
Returns Zero if a
is 0, Positive if a
is positive, and Negative is a
is negative.
Attributes
- Inherited from:
- Signed
- Source
- Signed.scala
Given a sequence of as
, compute the sum.
Given a sequence of as
, compute the sum.
Attributes
- Inherited from:
- AdditiveMonoid
- Source
- Additive.scala
Attributes
- Definition Classes
- Inherited from:
- AdditiveMonoid
- Source
- Additive.scala
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
- Definition Classes
- Inherited from:
- AdditiveMonoid
- Source
- Additive.scala
Attributes
- Inherited from:
- AdditiveMonoid
- Source
- Additive.scala
In this article