LanguageExt.Core

LanguageExt.Core Traits Fraction

Contents

interface Fraction <A> Source #

Fractional number trait

Parameters

type A

The type for which fractional operations are being defined.

Methods

method A FromRational (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 Trait Source #

Methods

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

where FRACTION : 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.