Houtamelo.Spire.Functional 6.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Houtamelo.Spire.Functional --version 6.0.0
                    
NuGet\Install-Package Houtamelo.Spire.Functional -Version 6.0.0
                    
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="Houtamelo.Spire.Functional" Version="6.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Houtamelo.Spire.Functional" Version="6.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Houtamelo.Spire.Functional" />
                    
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 Houtamelo.Spire.Functional --version 6.0.0
                    
#r "nuget: Houtamelo.Spire.Functional, 6.0.0"
                    
#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 Houtamelo.Spire.Functional@6.0.0
                    
#: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=Houtamelo.Spire.Functional&version=6.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Houtamelo.Spire.Functional&version=6.0.0
                    
Install as a Cake Tool

Houtamelo.Spire.Functional

Functional operations for Spire results and nullable value types. Targets .NET Standard 2.0 and depends on Houtamelo.Spire, which NuGet installs automatically.

dotnet add package Houtamelo.Spire.Functional
using Houtamelo.Spire.Functional;

Result<int> result = Result<int>.Ok(21);
Result<int> doubled = result.map(value => value * 2);

int? optional = true.then(() => 42);
string label = optional.map_or(value => value.ToString(), "missing");

Result<T> contains either a success value or an Exception; Result represents success without a payload or an exception. Mapping and chaining preserve errors without invoking success callbacks. unwrap() throws the stored exception while preserving its stack trace; expect(message) wraps it as InnerException and adds context. Exceptions thrown by callbacks propagate to the caller.

OptionImpl provides Some, None, mapping, filtering, lazy fallbacks, and conversion to results for Nullable<T>. The then extension computes a value only when its Boolean receiver is true. Reference-output overloads use null to represent absence.

Collection helpers include try_collect, try_fold, try_map, try_for_each, iter_oks, iter_errs, unzip, and flatten. The try_ sequence operations stop at the first failed result; callbacks and enumeration exceptions still propagate.

The Spire Unity distribution includes this library and its XML API documentation alongside the core runtime and compiler extensions.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
6.1.3 73 11/19/2026
6.1.2 63 11/19/2026
6.1.1 93 11/16/2026
6.1.0 104 11/14/2026
6.0.0 107 11/12/2026

First release: Result and nullable Option helpers for .NET Standard 2.0, with Spire analyzers and source generation supplied through the Houtamelo.Spire dependency. Release notes: https://github.com/Houtamelo/spire_csharp_analyzers/blob/v6.0.0/docs/releases/6.0.0.md