ASGRE

coulomb.ops.algebra.refined.all.infra.ASGRE
class ASGRE[V, P](using alg: AdditiveSemigroup[Refined[V, P]]) extends AdditiveSemigroup[Either[String, Refined[V, P]]]

Attributes

Source
all.scala
Graph
Supertypes
trait AdditiveSemigroup[Either[String, Refined[V, P]]]
trait Serializable
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def plus(x: Either[String, Refined[V, P]], y: Either[String, Refined[V, P]]): Either[String, Refined[V, P]]

Attributes

Source
all.scala

Inherited methods

Attributes

Inherited from:
AdditiveSemigroup
Source
Additive.scala
def sumN(a: Either[String, Refined[V, P]], n: Int): A

Attributes

Inherited from:
AdditiveSemigroup
Source
Additive.scala
def trySum(as: IterableOnce[Either[String, Refined[V, P]]]): 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

Inherited from:
AdditiveSemigroup
Source
Additive.scala