Houtamelo.Spire.Functional
6.1.1
See the version list below for details.
dotnet add package Houtamelo.Spire.Functional --version 6.1.1
NuGet\Install-Package Houtamelo.Spire.Functional -Version 6.1.1
<PackageReference Include="Houtamelo.Spire.Functional" Version="6.1.1" />
<PackageVersion Include="Houtamelo.Spire.Functional" Version="6.1.1" />
<PackageReference Include="Houtamelo.Spire.Functional" />
paket add Houtamelo.Spire.Functional --version 6.1.1
#r "nuget: Houtamelo.Spire.Functional, 6.1.1"
#:package Houtamelo.Spire.Functional@6.1.1
#addin nuget:?package=Houtamelo.Spire.Functional&version=6.1.1
#tool nuget:?package=Houtamelo.Spire.Functional&version=6.1.1
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 | Versions 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. |
-
.NETStandard 2.0
- Houtamelo.Spire (>= 6.1.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Update the Spire dependency with readonly variant serialization warnings and record-struct union declaration fixes. Release notes: https://github.com/Houtamelo/spire_csharp_analyzers/blob/v6.1.1/docs/releases/6.1.1.md