Functional.Maybe 1.0.7

There is a newer version of this package available.
See the version list below for details.
dotnet add package Functional.Maybe --version 1.0.7
                    
NuGet\Install-Package Functional.Maybe -Version 1.0.7
                    
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.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Functional.Maybe" Version="1.0.7" />
                    
Directory.Packages.props
<PackageReference Include="Functional.Maybe" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Functional.Maybe --version 1.0.7
                    
#r "nuget: Functional.Maybe, 1.0.7"
                    
#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.
#:package Functional.Maybe@1.0.7
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Functional.Maybe&version=1.0.7
                    
Install as a Cake Addin
#tool nuget:?package=Functional.Maybe&version=1.0.7
                    
Install as a Cake Tool

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")
);

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (7)

Showing the top 5 NuGet packages that depend on Functional.Maybe:

Package Downloads
Functional.Maybe.Just

An extension with Just() method for Functional.Maybe

AutoFixture.Community.AutoEF.Core

Package Description

NScan.Adapter.ReadingCSharpSolution

Package Description

Functional.Maybe.JsonConverter

A JSON.Net converter that allows serialization and deserialization of instances of Functional.Maybe

NScan.Domain

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.20 1,282,809 3/29/2020
2.0.18 79,754 6/10/2019
2.0.17 1,236 6/10/2019
2.0.10 76,035 1/31/2019
2.0.9 3,694 12/24/2018
2.0.8 1,362 12/24/2018
2.0.7 1,887 12/19/2018
2.0.6 1,347 12/19/2018
2.0.5 1,319 12/19/2018
2.0.4 1,862 12/19/2018
1.1.1 96,344 11/8/2016
1.1.0 9,797 9/25/2016
1.0.8 4,202 3/10/2016
1.0.7 15,498 11/22/2015
1.0.6 2,492 11/10/2015
1.0.5 2,174 11/2/2015
1.0.4 2,378 10/1/2015
1.0.3 7,025 9/3/2014
1.0.2 2,274 2/18/2014
1.0.1 1,984 2/17/2014
1.0.0 2,449 10/29/2013

An error fixed: it was possible in some case to get a Maybe with HasValue == true and Value == null. Now it is not.