TypeClassExtensions Class

DECLARATION
public static partial class TypeClassExtensions
NAMESPACE
LanguageExt

Methods

FromRational<A>(Fraction<A>, Ratio<int>)
SUMMARY

Generates a fractional value from an integer ratio.

PARAMETERS
frac
Fraction<A>
x
Ratio<int>
The ratio to convert
DECLARATION
[Pure]
public static A FromRational<A>(this Fraction<A> frac, Ratio<int> x)
RETURNS
A
The equivalent of x in the implementing type.