25 packages returned for discriminated unions
FunctionalSharp PatternMatching Discriminated unions
- 112 total downloads
- last updated 2/4/2018
- Latest version: 0.9.106
Provides additional types and methods allowing patternamtching to return discriminatedunions. You can now return different types with patternamtching;and return a discriminated union of these types.
Easy Discriminated Unions for c#
- 11,659 total downloads
- last updated 3/17/2018
- Latest version: 2.1.117
F# style discriminated unions or C#, using a custom type OneOf<T0, ... Tn> which holds a single value and has a .Match(...) method on it for exhaustive matching. Simple but powerful.
- 268 total downloads
- last updated 8/4/2017
- Latest version: 18.104.22.168
Implementation of Discriminated Union and Pattern Matching in C#. string outputValue = x.Match<String>() .Case(c => c == "Test", v => "It's Test!") .Case(v => "It's Not Test!") .Else(() => "It's None!") or var x = new Union<string, int>(100); // the type annotations... More information
- 6,703 total downloads
- last updated 2/12/2018
- Latest version: 3.1.0
Succinc<T> is a .NET library that adds a number of functional features to C#: * Discriminated unions, * Pattern matching, * Partial applications, * "Implicitly" typed lambdas, * The ability to treat void methods as Unit functions, * Replacements for TryParse methods that return an Option<T> (or... More information
- 1,220 total downloads
- last updated 2/16/2018
- Latest version: 22.214.171.124
Portable library for easy to use F#-like Discriminated Unions in C#. Implicitly casts objects into OneOf instances, then use .Match extension to do pattern matching. Designed as a partial drop in replacement for OneOf.
- 5,826 total downloads
- last updated 3/7/2018
- Latest version: 2.0.0
CodeJam is a set of handy reusable .NET components that can simplify your daily work and save your time when you copy and paste your favorite helper methods and classes from one project to another.