May: A functional C# option type NuGet Package

Implements an option type (Strilanc.Value.May<T>) that encourages usage based on pattern matching rather than ForceGetValue.

Also includes utility methods for producing, consuming and transforming May<T>.

Note on null: May<T> treats null like any other value. May.NoValue is distinct from null, and both are distinct from ((object)null).Maybe().




Got any May: A functional C# option type Question?





Info

Version: 1.0.2
Author(s): Craig Gidney
Last Update: Thursday, November 29, 2012
.NET Fiddle: Create the first Fiddle
Project Url: https://github.com/Strilanc/May
NuGet Url: https://www.nuget.org/packages/Strilanc.Value.May


Install
Install-Package Strilanc.Value.May
dotnet add package Strilanc.Value.May
paket add Strilanc.Value.May
Strilanc.Value.May Download (Unzip the "nupkg" after downloading)

6 packages depend on this package.


Tags



STATS

must-have-score

1.6

avg-downloads-per-day

11

days-since-last-release

4359