FxKit

June 17, 2024 ยท View on GitHub

A library for C# to enable functional, railway-oriented programming using common abstract data types like Result, Option and Validation. Also includes Roslyn-based analyzers and source generators for generating union types, exhaustive Match, and much more.

Documentation

Visit the official documentation to get started.

Installation

FxKit is broken up into the following packages:

It is recommended to add the following global using to make it easy to construct the core data types.

global using static FxKit.Prelude;

This makes functions like Some(value) and Ok(value) available everywhere.

License

MIT