Functional.Maybe
Option type 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") );
Install
dotnet add package Functional.Maybe --version 1.0.0
Install-Package Functional.Maybe -Version 1.0.0
<PackageReference Include="Functional.Maybe" Version="1.0.0" />
Frameworks
No framework metadata available.
Dependencies
No declared dependencies.
Adoption guide
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.
No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.
How to read this guidance
Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.
Useful next steps
Move from package metadata to a concrete selection or review workflow.