BoolRingFromBool
Attributes
- Source
- Bool.scala
- Graph
-
- Supertypes
-
trait BoolRing[A]trait CommutativeRing[A]trait CommutativeRig[A]trait MultiplicativeCommutativeMonoid[A]trait Ring[A]trait Rig[A]trait MultiplicativeMonoid[A]class BoolRngFromGenBool[A]trait BoolRng[A]trait CommutativeRng[A]trait CommutativeSemiring[A]trait MultiplicativeCommutativeSemigroup[A]trait Rng[A]trait AdditiveCommutativeGroup[A]trait AdditiveGroup[A]trait Semiring[A]trait MultiplicativeSemigroup[A]trait AdditiveCommutativeMonoid[A]trait AdditiveCommutativeSemigroup[A]trait AdditiveMonoid[A]trait AdditiveSemigroup[A]trait Serializableclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Attributes
- Source
- Bool.scala
Inherited methods
Attributes
- Definition Classes
- Inherited from:
- AdditiveCommutativeGroup
- Source
- Additive.scala
Convert the given BigInt to an instance of A.
Convert the given BigInt to an instance of A.
This is equivalent to n
repeated summations of this ring's one
, or -n
summations of -one
if n
is negative.
Most type class instances should consider overriding this method for performance reasons.
Attributes
- Inherited from:
- Ring
- Source
- Ring.scala
Convert the given integer to an instance of A.
Convert the given integer to an instance of A.
Defined to be equivalent to sumN(one, n)
.
That is, n
repeated summations of this ring's one
, or -n
summations of -one
if n
is negative.
Most type class instances should consider overriding this method for performance reasons.
Attributes
- Inherited from:
- Ring
- Source
- Ring.scala
Tests if a
is one.
Tests if a
is zero.
Attributes
- Inherited from:
- AdditiveGroup
- Source
- Additive.scala
Attributes
- Definition Classes
- Inherited from:
- MultiplicativeCommutativeMonoid
- Source
- Multiplicative.scala
Attributes
- Definition Classes
- Inherited from:
- BoolRng
- Source
- BoolRng.scala
Attributes
- Inherited from:
- BoolRngFromGenBool
- Source
- GenBool.scala
Attributes
- Definition Classes
- Inherited from:
- MultiplicativeMonoid
- Source
- Multiplicative.scala
Given a sequence of as
, compute the product.
Given a sequence of as
, compute the product.
Attributes
- Inherited from:
- MultiplicativeMonoid
- Source
- Multiplicative.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:
- AdditiveGroup
- Source
- Additive.scala
Attributes
- Inherited from:
- BoolRngFromGenBool
- Source
- GenBool.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:
- MultiplicativeMonoid
- Source
- Multiplicative.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:
- BoolRngFromGenBool
- Source
- GenBool.scala