Galaxus.Functional icon indicating copy to clipboard operation
Galaxus.Functional copied to clipboard

A package bringing popular functional abstractions (e.g. Option or Result) to C#.

Results 5 Galaxus.Functional issues
Sort by recently updated
recently updated
newest added

With `Option.ToEither(B)` there is a way to convert an Option to an Either with a fallback value. The drawback is, that the Option's value will always be in the A...

Would love to have async support for MapOr and Or on Option. For async Pipelines sadly an unnecessary MapOr is needed if the fallback is async: `await option.MapOr(v => Task.FromResult(v),...

When chaining `Result`'s, there is often the need to work with the results value more than once, e.g. for logging and inform some listeners. One can use the functions `Map`...

The type constructor of None currently is very verbose. You always have to give the type information of the inner type. This is not necessary in the some case, the...

One of the cooler features in newer C# versions is pattern matching, especially something akin to ```csharp var foo = bar switch { 0: "High" }; ``` And one of...