given_NormedAdditiveMonoid_String_Int
Attributes
- Graph
-
- Supertypes
-
trait AdditiveMonoid[String]trait AdditiveIdentity[String]trait AdditiveSemigroup[String]trait Root[String]class Objecttrait Matchableclass AnyShow all
- Self type
Members list
Value members
Concrete methods
Computes the sum of two values x and y, i.e. x + y.
Computes the sum of two values x and y, i.e. x + y.
Attributes
- Note
-
All implementations must be associative, i.e.
(x + y) + z == x + (y + z). - Definition Classes
Computes the length (norm) of x.
The unique representation of the additive identity (0) in this algebra system. Typically corresponds to values such as 0, 0.0F, or Seq.empty.
The unique representation of the additive identity (0) in this algebra system. Typically corresponds to values such as 0, 0.0F, or Seq.empty.
Attributes
- Note
-
All implementations must obey the identity property, i.e.
x + zero == zero + x == x. - Definition Classes
Inherited methods
Attributes
- Returns
-
trueif x equals zero. - Inherited from:
- AdditiveIdentity
Computes x multiplied by n, for any non-negative n.
Computes x multiplied by n, for any non-negative n.
Attributes
- Throws
-
IllegalArgumentException
if
n < 0. - Definition Classes
- Inherited from:
- AdditiveMonoid
Computes the sum of x and all values in xs, i.e. x + xs₁ + xs₂ + ….
Computes the sum of x and all values in xs, i.e. x + xs₁ + xs₂ + ….
Attributes
- Inherited from:
- AdditiveSemigroup
Computes the sum of all values in xs, i.e. xs₁ + xs₂ + …, or else zero if xs is empty.
Computes the sum of all values in xs, i.e. xs₁ + xs₂ + …, or else zero if xs is empty.
Attributes
- Inherited from:
- AdditiveMonoid
Computes the sum of all values in xs, i.e. xs₁ + xs₂ + …, or else None if xs is empty.
Computes the sum of all values in xs, i.e. xs₁ + xs₂ + …, or else None if xs is empty.
Attributes
- Inherited from:
- AdditiveSemigroup
Extensions
Inherited extensions
Attributes
- Returns
-
trueif x equals zero. - Inherited from:
- AdditiveIdentity