Functional.Maybe
1.0.3
dotnet add package Functional.Maybe --version 1.0.3
NuGet\Install-Package Functional.Maybe -Version 1.0.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Functional.Maybe" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Functional.Maybe --version 1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Functional.Maybe, 1.0.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Functional.Maybe as a Cake Addin
#addin nuget:?package=Functional.Maybe&version=1.0.3
// Install Functional.Maybe as a Cake Tool
#tool nuget:?package=Functional.Maybe&version=1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Option types for C# with LINQ support and rich fluent syntax for many popular uses:
var maybeOne = "one".ToMaybe();
var maybeAnother = Maybe<string>.Nothing;
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")
);
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
GitHub repositories
This package is not used by any popular GitHub repositories.