NuGet Package Functional.Maybe

Option types for C# with LINQ support and rich fluent syntax for many popular uses:

var maybeOne = "one".ToMaybe();
Maybe<string> maybeAnother;

var maybeBoth =
from one in maybeOne
from another in maybeAnother
select one + another;

maybeBoth.Match(
both => Console.WriteLine("Result is: {0}", both),
@else: () => Console.WriteLine("Result is Nothing, as one of the inputs was Nothing")
);.




Got any Functional.Maybe Question?





Info

Version: 2.0.20
Author(s): Andrey Tsvetkov, William Cassarin
Last Update: Sunday, March 29, 2020
.NET Fiddle: Create the first Fiddle
Project Url: https://github.com/AndreyTsvetkov/Functional.Maybe
NuGet Url: https://www.nuget.org/packages/Functional.Maybe


Install
Install-Package Functional.Maybe
dotnet add package Functional.Maybe
paket add Functional.Maybe
Functional.Maybe Download (Unzip the "nupkg" after downloading)

11 packages depend on this package.


Tags



STATS

must-have-score

5.3

avg-downloads-per-day

72

days-since-last-release

1450