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)
Dependencies
- NETStandard.Library(>= 1.6.1)
Tags
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")
);.