LanguageExt.Core

LanguageExt.Core Type Classes Arithmetic

Contents

interface Arithmetic <A> Source #

class TypeClass Source #

Methods

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

where ARITH : struct, 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 : struct, 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 : struct, 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 : struct, Arithmetic<A>

Negate the value

Parameters

param x

Value to negate

returns

The negated source value