MonoidInt

com.phasmid.majabigwaduce.core.Monoid.MonoidInt
object MonoidInt extends IntZero, Monoid[Int]

Attributes

Graph
Supertypes
trait Monoid[Int]
trait IntZero
trait Zero[Int]
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
MonoidInt.type

Members list

Value members

Concrete methods

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

Combines two integer values by performing addition.

Combines two integer values by performing addition.

Value parameters

x

the first integer value

y

the second integer value

Attributes

Returns

the result of adding x and y

Inherited methods

def zero: Int

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:
IntZero