30 packages returned for discriminated unions
FunctionalSharp PatternMatching Discriminated unions
- 179 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#
- 21,664 total downloads
- last updated 5/19/2018
- Latest version: 2.1.125
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.
- 343 total downloads
- last updated 8/4/2017
- Latest version: 188.8.131.52
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
- 12,078 total downloads
- last updated 5/17/2018
- Latest version: 3.2.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,580 total downloads
- last updated 2/16/2018
- Latest version: 184.108.40.206
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.