LanguageExt.Core

LanguageExt.Core Traits Arithmetic

Contents

interface Arithmetic <A> Source #

Methods

method A Add (A x, A y) Source #

Find the sum of two values

Parameters

param x

left hand side of the addition operation

param y

right hand side of the addition operation

returns

The sum of x and y

method A Subtract (A x, A y) Source #

Find the difference between two values

Parameters

param x

left hand side of the subtraction operation

param y

right hand side of the subtraction operation

returns

The difference between x and y

method A Multiply (A x, A y) Source #

Find the product of two values

Parameters

param x

left hand side of the product operation

param y

right hand side of the product operation

returns

The product of x and y

method A Negate (A x) Source #

Negate the value

Parameters

param x

Value to negate

returns

The negated source value

class Trait Source #

Methods

method A plus <ARITH, A> (A x, A y) Source #

where ARITH : Arithmetic<A>

Find the sum of two numbers

Parameters

param x

left hand side of the addition operation

param y

right hand side of the addition operation

returns

The sum of x and y

method A subtract <ARITH, A> (A x, A y) Source #

where ARITH : Arithmetic<A>

Find the subtract between two numbers

Parameters

param x

left hand side of the subtraction operation

param y

right hand side of the subtraction operation

returns

The sum subtract between x and y

method A product <ARITH, A> (A x, A y) Source #

where ARITH : Arithmetic<A>

Find the product of two numbers

Parameters

param x

left hand side of the product operation

param y

right hand side of the product operation

returns

The product of x and y

method A negate <ARITH, A> (A x) Source #

where ARITH : Arithmetic<A>

Negate the value

Parameters

param x

Value to negate

returns

The negated source value