Skip to content

An implementation of monads in csharp, with JetBrains Rider as IDE and Lubuntu as operating system

License

Notifications You must be signed in to change notification settings

seymourpoler/Monads

Repository files navigation

Monads

Build Status

An implementation of monads in csharp, in Lubuntu 18.04 LTS as operating system and with JetBrains Rider as IDE

Monad.Maybe

Very simple monad Maybe library written in c-sharp.

Create Monad from:

	Maybe<string>.Of("Hello")

Return value or another element

	var result = Maybe<string>.Of("Hello")
			    .match(() => "bye", null);

Simple string tokenizer

	var result = Maybe<string>.Of("Hello")
			    .Bind<List<string>> (y => y.Split(' ').ToList<string>())
			    .Match(x => x, _ => new List<string>());

About

An implementation of monads in csharp, with JetBrains Rider as IDE and Lubuntu as operating system

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages