LanguageExt.Core

LanguageExt.Core Type Classes Fraction

Contents

interface Fraction <A> Source #

Fractional number type-class

Parameters

type A

The type for which fractional operations are being defined.

class TypeClassExtensions Source #

Methods

method A FromRational <A> (this Fraction<A> frac, Ratio<int> x) Source #

Generates a fractional value from an integer ratio.

Parameters

param x

The ratio to convert

returns

The equivalent of x in the implementing type.

class TypeClass Source #

Methods

method A fromRational <FRACTION, A> (Ratio<int> x) Source #

where FRACTION : struct, Fraction<A>

Generates a fractional value from an integer ratio.

Parameters

param x

The ratio to convert

returns

The equivalent of x in the implementing type.