class MapSemiring[K, V] extends MapAdditiveMonoid[K, V] with Semiring[Map[K, V]]
- Source
- map.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- MapSemiring
- Semiring
- MultiplicativeSemigroup
- AdditiveCommutativeMonoid
- AdditiveCommutativeSemigroup
- MapAdditiveMonoid
- AdditiveMonoid
- AdditiveSemigroup
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def additive: CommutativeMonoid[Map[K, V]]
- Definition Classes
- AdditiveCommutativeMonoid → AdditiveCommutativeSemigroup → AdditiveMonoid → AdditiveSemigroup
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isZero(a: Map[K, V])(implicit ev: Eq[Map[K, V]]): Boolean
Tests if
a
is zero.Tests if
a
is zero.- Definition Classes
- AdditiveMonoid
- def multiplicative: Semigroup[Map[K, V]]
- Definition Classes
- MultiplicativeSemigroup
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def plus(xs: Map[K, V], ys: Map[K, V]): Map[K, V]
- Definition Classes
- MapAdditiveMonoid → AdditiveSemigroup
- def positivePow(a: Map[K, V], n: Int): Map[K, V]
- Attributes
- protected[this]
- Definition Classes
- MultiplicativeSemigroup
- def positiveSumN(a: Map[K, V], n: Int): Map[K, V]
- Attributes
- protected[this]
- Definition Classes
- AdditiveSemigroup
- def pow(x: Map[K, V], n: Int): Map[K, V]
- Definition Classes
- MapSemiring → MultiplicativeSemigroup
- def sum(as: TraversableOnce[Map[K, V]]): Map[K, V]
Given a sequence of
as
, compute the sum.Given a sequence of
as
, compute the sum.- Definition Classes
- MapAdditiveMonoid → AdditiveMonoid
- Annotations
- @nowarn()
- def sumN(a: Map[K, V], n: Int): Map[K, V]
- Definition Classes
- MapAdditiveMonoid → AdditiveMonoid → AdditiveSemigroup
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def times(xs: Map[K, V], ys: Map[K, V]): Map[K, V]
- Definition Classes
- MapSemiring → MultiplicativeSemigroup
- def toString(): String
- Definition Classes
- AnyRef → Any
- def tryProduct(as: TraversableOnce[Map[K, V]]): Option[Map[K, V]]
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).
- Definition Classes
- MapSemiring → MultiplicativeSemigroup
- Annotations
- @nowarn()
- def trySum(as: TraversableOnce[Map[K, V]]): Option[Map[K, V]]
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).
- Definition Classes
- AdditiveMonoid → AdditiveSemigroup
- Annotations
- @nowarn()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def zero: Map[K, V]
- Definition Classes
- MapAdditiveMonoid → AdditiveMonoid