GenUtils


GenUtils

Documentation

The GenUtils library can be installed from NuGet:
PM> Install-Package Informedica.GenUtils.Lib -Pre

Example

This example demonstrates using a function defined in this sample library.

1: 
2: 
3: 
4: 
5: 
6: 
7: 
open Informedica.GenUtils.Lib.BCL

"Samlpe string" |> String.replace "Samlpe" "Sample"

open Informedica.GenUtils.Lib

BigRational.gcd 24N 30N

Some more info

Samples & documentation

The library comes with comprehensible documentation. It can include tutorials automatically generated from *.fsx files in the content folder. The API reference is automatically generated from Markdown comments in the library implementation.

  • Tutorial contains a further explanation of this sample library.

  • API Reference contains automatically generated documentation for all types, modules and functions in the library. This includes additional brief samples on using most of the functions.

Contributing and copyright

The project is hosted on GitHub where you can report issues, fork the project and submit pull requests. If you're adding a new public API, please also consider adding samples that can be turned into a documentation. You might also want to read the library design notes to understand how it works.

The library is available under Public Domain license, which allows modification and redistribution for both commercial and non-commercial purposes. For more information see the License file in the GitHub repository.

namespace Informedica
namespace Informedica.GenUtils
namespace Informedica.GenUtils.Lib
namespace Informedica.GenUtils.Lib.BCL
Multiple items
module String

from Informedica.GenUtils.Lib.BCL


 Helper functions for `System.String`


--------------------
module String

from Microsoft.FSharp.Core
val replace : os:string -> ns:string -> s:System.String -> string

Full name: Informedica.GenUtils.Lib.BCL.String.replace


 Replace `os` with `ns` in string `s`.
Multiple items
module BigRational

from Informedica.GenUtils.Lib


 Helper functions for `BigRational`


--------------------
type BigRational
interface IComparable
override GetHashCode : unit -> int
override ToString : unit -> string
member Denominator : BigInteger
member IsNegative : bool
member IsPositive : bool
member Numerator : BigInteger
member Sign : int
member StructuredDisplayString : string
static member Abs : BigRational -> BigRational
static member FromBigInt : BigInteger -> BigRational
static member FromInt : int -> BigRational
static member Parse : string -> BigRational
static member PowN : BigRational * int -> BigRational
static member ToBigInt : BigRational -> BigInteger
static member ToDouble : BigRational -> float
static member ToInt32 : BigRational -> int
static member One : BigRational
static member Zero : BigRational
static member ( + ) : BigRational * BigRational -> BigRational
static member ( / ) : BigRational * BigRational -> BigRational
static member ( = ) : BigRational * BigRational -> bool
static member op_Explicit : BigRational -> int
static member op_Explicit : BigRational -> BigInteger
static member op_Explicit : BigRational -> float
static member ( > ) : BigRational * BigRational -> bool
static member ( >= ) : BigRational * BigRational -> bool
static member ( <> ) : BigRational * BigRational -> bool
static member ( < ) : BigRational * BigRational -> bool
static member ( <= ) : BigRational * BigRational -> bool
static member ( * ) : BigRational * BigRational -> BigRational
static member ( - ) : BigRational * BigRational -> BigRational
static member ( ~- ) : BigRational -> BigRational
static member ( ~+ ) : BigRational -> BigRational

Full name: Microsoft.FSharp.Math.BigRational
val gcd : a:BigRational -> b:BigRational -> BigRational

Full name: Informedica.GenUtils.Lib.BigRational.gcd


 Get the greatest common divisor
 of two bigrationals `a` and `b`
Fork me on GitHub