SetBoolRng

algebra.instances.SetBoolRng
class SetBoolRng[A] extends BoolRng[Set[A]]

Attributes

Source:
set.scala
Graph
Supertypes

Members list

Concise view

Value members

Concrete methods

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

Attributes

Source:
set.scala
def times(x: Set[A], y: Set[A]): Set[A]

Attributes

Source:
set.scala
def zero: Set[A]

Attributes

Source:
set.scala

Inherited methods

def isZero(a: Set[A])(implicit ev: Eq[Set[A]]): Boolean

Tests if a is zero.

Tests if a is zero.

Attributes

Inherited from:
AdditiveMonoid
Source:
Additive.scala
def minus(x: Set[A], y: Set[A]): A

Attributes

Inherited from:
AdditiveGroup
Source:
Additive.scala
final override def negate(x: Set[A]): A

Attributes

Definition Classes
Inherited from:
BoolRng
Source:
BoolRng.scala
def pow(a: Set[A], n: Int): A

Attributes

Inherited from:
MultiplicativeSemigroup
Source:
Multiplicative.scala
def sum(as: IterableOnce[Set[A]]): A

Given a sequence of as, compute the sum.

Given a sequence of as, compute the sum.

Attributes

Inherited from:
AdditiveMonoid
Source:
Additive.scala
override def sumN(a: Set[A], n: Int): A

Attributes

Definition Classes
Inherited from:
AdditiveGroup
Source:
Additive.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

Inherited from:
MultiplicativeSemigroup
Source:
Multiplicative.scala
override def trySum(as: IterableOnce[Set[A]]): Option[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).

Attributes

Definition Classes
Inherited from:
AdditiveMonoid
Source:
Additive.scala