Fin.Core 0.1.0

Package Description

Install-Package Fin.Core -Version 0.1.0
dotnet add package Fin.Core --version 0.1.0
<PackageReference Include="Fin.Core" Version="0.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Fin.Core --version 0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Fin.Core, 0.1.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Fin.Core as a Cake Addin
#addin nuget:?package=Fin.Core&version=0.1.0

// Install Fin.Core as a Cake Tool
#tool nuget:?package=Fin.Core&version=0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Fin

Fin is a functional programming extension for C#

Usage

Curried Functions

Fin has extension methods defined for funcs with 2-6 params with a result. This is important for implementing partial application.

using Fin;

Func<int,int,int> Add = (v1, v2) => v1 + v2;

var add1 = Add.Curry()(1);
var result = add1(2);
// result is 3

Actions to Functions

When action doesn't return a result it's hard to chain functions together. The extension method ToFunc() is defined for actions. Add using Fin; to access these extension methods.

using Fin;

Action<string> printToAction = (toPrintToConsole) => Console.WriteLine(toPrintToConsole)
Func<string,unit> printToFunc = printToAction.ToFunc();

References

Books
Functional Programming in C#
How to write better C# code

Fin

Fin is a functional programming extension for C#

Usage

Curried Functions

Fin has extension methods defined for funcs with 2-6 params with a result. This is important for implementing partial application.

using Fin;

Func<int,int,int> Add = (v1, v2) => v1 + v2;

var add1 = Add.Curry()(1);
var result = add1(2);
// result is 3

Actions to Functions

When action doesn't return a result it's hard to chain functions together. The extension method ToFunc() is defined for actions. Add using Fin; to access these extension methods.

using Fin;

Action<string> printToAction = (toPrintToConsole) => Console.WriteLine(toPrintToConsole)
Func<string,unit> printToFunc = printToAction.ToFunc();

References

Books
Functional Programming in C#
How to write better C# code

  • .NETStandard 2.0

    • No dependencies.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Fin.Core:

Package Downloads
Fin.Option
Package Description
Fin.Collection
Package Description
Fin
Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.1.0 463 12/24/2018