FP.Arrow.Core
1.1.1
dotnet add package FP.Arrow.Core --version 1.1.1
NuGet\Install-Package FP.Arrow.Core -Version 1.1.1
<PackageReference Include="FP.Arrow.Core" Version="1.1.1" />
<PackageVersion Include="FP.Arrow.Core" Version="1.1.1" />
<PackageReference Include="FP.Arrow.Core" />
paket add FP.Arrow.Core --version 1.1.1
#r "nuget: FP.Arrow.Core, 1.1.1"
#:package FP.Arrow.Core@1.1.1
#addin nuget:?package=FP.Arrow.Core&version=1.1.1
#tool nuget:?package=FP.Arrow.Core&version=1.1.1
Arrow (.NET)
A .NET port of Arrow, starting from the Kotlin arrow-core library. Arrow.Core provides functional programming abstractions for C#:
- Sum types:
Option<A>,Either<A,B>,Ior<A,B> - Non-empty collections:
NonEmptyList<E>,NonEmptySet<E> - Raise DSL: typed, short-circuiting error handling (
RunEither,RunOption,RunNullable,RunResult,RunIor) - Effects: reusable
EagerEffect<Error,A>and asyncEffect<Error,A> - Collection utilities: zip, align, padZip, mapOrAccumulate on iterables, sequences, and dictionaries
- Memoization, tuples, comparison helpers
Requirements: .NET 10, C# preview, nullable reference types enabled.
Quick example
using Arrow.Core;
using Arrow.Core.Raise;
Either<string, int> result = RaiseBuilders.RunEither<string, int>(raise =>
{
raise.Ensure(!string.IsNullOrWhiteSpace(input), () => "empty input");
var value = raise.Bind(ParseInt(input)); // Either<string, int>
return value * 2;
});
string message = result.Fold(
err => $"Error: {err}",
n => $"Result: {n}");
Documentation
Full library guide with examples →
The guide covers:
- Option, Either, Ior, and OperationResult
- Synchronous and asynchronous pipelines over
Task-wrapped values - All Raise builders and Effect combinators
- Error accumulation (parallel validation)
- Non-empty collections and iterable/map extensions
- A complete user-registration walkthrough
Build and test
dotnet build Arrow.sln
dotnet test Arrow.sln
Publishing
NuGet releases use trusted publishing (OIDC, no stored API keys). See docs/PUBLISHING.md for setup and release steps.
git tag v0.1.0
git push origin v0.1.0
Project layout
Arrow.sln
src/core/
Arrow.Core/ # Library (net10.0, no NuGet dependencies)
Arrow.Core.Test/ # xUnit + FsCheck tests
docs/
GUIDE.md # Full documentation
License
Licensed under the Apache License 2.0. This project is a port of Arrow Kotlin arrow-core; upstream Arrow is also licensed under Apache 2.0.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on FP.Arrow.Core:
| Package | Downloads |
|---|---|
|
Application.Abstraction
CQRS abstractions for .NET application layers using SimpleMediator and Arrow. |
GitHub repositories
This package is not used by any popular GitHub repositories.