Selected parts from FSharpX.Extras moved over to enable usage in C#.
The goal of this project is to expose selected F# classes to C#. There are some neat things about using Result, Option and Choice in your C#.
using FSharpPlusCSharp;
using Microsoft.FSharp.Core;
var a = 5.Some();
var b = 6.Some();
var sum = from x in a
from y in b
select x + y; // Some 11
var result = sum.ToResult("missing value");Public APIs also include XML documentation comments so usage is rendered by standard .NET documentation tooling (for example IntelliSense).
| MacOS/Linux | Windows |
|---|---|
| Stable | Prerelease |
|---|---|
Make sure the following requirements are installed in your system:
- dotnet SDK 2.0 or higher
- Mono if you're on Linux or macOS.
> build.cmd // on windows
$ ./build.sh // on unix