functional-csharp-code
functional-csharp-code copied to clipboard
Code samples for Functional Programming in C#
Bumps [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) from 10.0.1 to 13.0.1. Release notes Sourced from Newtonsoft.Json's releases. 13.0.1 New feature - Add JsonSelectSettings with configuration for a regex timeout Change - Remove portable assemblies from...
Take the `Age` type from chapter 3 as an example ([source code](https://github.com/la-yumba/functional-csharp-code/blob/master/Examples/Chapter03/Age.cs)). Suppose I want to create a `Person` class, that EF will map to a table... ```c# public class...
Hello, I am trying to use the `Exceptional `class in a function which queries the database and returns a `Task`. I am having a hard time understanding how to catch...
In book P198, I learned how to lift a function into Validation by calling Valid(PhoneNumber.Create). But it didn't work in my exercise. Valid is only used for data type T,...
Hi. First off: reading the book at the moment and think it's great. Thank you. I encountered a bug today when I tried to do this: `return Option.Map(t => t.NullableA?.NullableB)...
Bumps [Microsoft.AspNetCore.All](https://github.com/aspnet/Universe) from 2.0.3 to 2.0.9. Commits - [`84d6a54`](https://github.com/aspnet/Universe/commit/84d6a54ce9ba941e2b7318d7f377908473d35f6d) Merge 2.0.9 into release/2.0 - [`43ec723`](https://github.com/aspnet/Universe/commit/43ec72353f83465a3dd238e5a025b255e312f0ed) Merge branch release/2.0 - [`cc0e039`](https://github.com/aspnet/Universe/commit/cc0e0394acd1d13fb5769c3c8f8ec895893b39c4) Add required infrastructure improvements to submodules to support NETStandard... -...
Hi, Firstly - thank you for an **incredible** book! Without exaggerating, I've been wanting something like this for between five and ten years. Not sure if it's an issue with...
Enrico, I'm a big fan of your book. So much, that I even dived deeper in the subject of Middleware you introduced in Chapter 11. One thing that I couldn't...
If we pass to AverageYearsWorkedAtTheCompany an empty list or a list that contains only employees that still employed, method Average() will throw an exception, as it requires at least one...
Here is a link to a gist reproducing the problem i'm running into [Ambiguous call to SelectMany](https://gist.github.com/dogwith1eye/409f38ea692077d58ca757b189b1bf98) I'm guessing the compiler can't decide whether to use the SelectMany on Task...