Toolbox of functional extension methods and other useful tools for sharpening your .NET code
Using the Map()
extension method
var number = "12"
.Map(int.Parse)
.Map(x => x * 2); // number is an int and has a value of 24
After watching Functional Programming with C# by Dave Fancher on Pluralsight, I was inspired to create my own library using the concepts I learned. I've added a few things that I feel can come in handy quite often.
This project is available as a NuGet package, so in Visual Studio you can just run
Install-Package Whetstone
in the Package Manager Console, as well as
right-clicking in the Solution Explorer and selecting 'Manage NuGet Packages...'
then searching for 'Whetstone'.
coming soon
Fork it. Fix or improve it. Submit a pull request.