In the file Cases.cs
are some excercises for the CSharpFunctionalExtensions library.
Clone this repository and try to rewrite the methods in Cases.cs
to use the CSharpFunctionalExtensions library.
The goal is to have only one expression per method and never call Result.Success
or Result.Failure
manually.
Run the tests to validate your result.
You will need the following methods from CSharpFunctionalExtensions:
Try to learn how to read the signature of those methods. Look out for their inputs and what they do to the outputs.
Then try to apply them to the exercises.