MonoidDouble

com.phasmid.majabigwaduce.core.Monoid.MonoidDouble
object MonoidDouble extends DoubleZero, Monoid[Double]

An implicit object representing a monoid instance for the Double type. This instance provides the monoid operation (addition) and identity element (zero) for Double.

Attributes

Graph
Supertypes
trait Monoid[Double]
trait DoubleZero
trait Zero[Double]
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type

Members list

Value members

Concrete methods

def combine(x: Double, y: Double): Double

Combines two Double values by performing addition.

Combines two Double values by performing addition.

Value parameters

x

The first Double value.

y

The second Double value.

Attributes

Returns

The result of adding x and y.

Inherited methods

def zero: Double

Method to create a zero/empty/nothing value of X

Method to create a zero/empty/nothing value of X

Attributes

Returns

an X which is zero (empty, etc.)

Inherited from:
DoubleZero