MapCSemiring
@SerialVersionUID(0L)
class MapCSemiring[K, V](implicit val scalar: CommutativeSemiring[V]) extends CommutativeSemiring[Map[K, V]] with Serializable
Value members
Concrete methods
Inherited methods
@nowarn("msg=deprecated")
Given a sequence of as
, compute the sum.
Given a sequence of as
, compute the sum.
- Inherited from:
- AdditiveMonoid
@nowarn("msg=deprecated")
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).
- Inherited from:
- MultiplicativeSemigroup