Skip to content
/ wrap Public

C# Monads - Either, Union, Maybe, Result and Id - for writing in a functional style.

License

Notifications You must be signed in to change notification settings

bfren/wrap

Repository files navigation

Wrap Monads (C#)

GitHub release (latest by date including pre-releases) Nuget GitHub
Test Publish Codacy Badge

Various monads (including Maybe - see here) for C# - to handle null values and exceptions better - including Linq support, chaining, and asynchronous programming. Includes:

  • Either<TLeft, TRight>
  • Union<T>
  • Id<T> (support for int, uint, long, ulong and Guid value types)
  • Maybe<T> (either: Some<T> or None)
  • Result<T> (either: Ok<T> or Fail)

View the Wiki for documentation.

Licence

MIT

Copyright

Copyright (c) 2019-2026 bfren (unless otherwise stated)

About

C# Monads - Either, Union, Maybe, Result and Id - for writing in a functional style.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

 
 
 

Languages