SetSemiring

class SetSemiring[A] extends Semiring[Set[A]]
trait Semiring[Set[A]]
trait AdditiveMonoid[Set[A]]
trait AdditiveSemigroup[Set[A]]
trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

def plus(x: Set[A], y: Set[A]): Set[A]
def times(x: Set[A], y: Set[A]): Set[A]
def zero: Set[A]

Inherited methods

override def additive: CommutativeMonoid[Set[A]]
def isZero(a: Set[A])(ev: Eq[Set[A]]): Boolean

Tests if a is zero.

Tests if a is zero.

Inherited from
AdditiveMonoid
def multiplicative: Semigroup[Set[A]]
def pow(a: Set[A], n: Int): Set[A]
def sum(as: IterableOnce[Set[A]]): Set[A]

Given a sequence of as, compute the sum.

Given a sequence of as, compute the sum.

Inherited from
AdditiveMonoid
override def sumN(a: Set[A], n: Int): Set[A]
Definition Classes
Inherited from
AdditiveMonoid
def tryProduct(as: IterableOnce[Set[A]]): Option[Set[A]]

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
override def trySum(as: IterableOnce[Set[A]]): Option[Set[A]]
Definition Classes
Inherited from
AdditiveMonoid