A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/sergeyzwezdin/monads.net below:

sergeyzwezdin/monads.net: DEPRECATED! Monads for .NET is helpers for C# which makes easier every day of your developer life. Now supports .NET 3.5-4.0, Silverlight 3-5 and Windows Phone 7.

WARNING: Project depreacted in favor of native C# syntax. Please, don't use it for new projects.

Monads for .NET is helpers for C# which makes easier every day of your developer life. Now supports .NET 3.5-4.0, Silverlight 3-5 and Windows Phone 7.

In functional programming, a monad is a programming structure that represents computations. Monads are a kind of abstract data type constructor that encapsulate program logic instead of data in the domain model. A defined monad allows the programmer to chain actions together to build a pipeline to process data in various steps, in which each action is decorated with additional processing rules provided by the monad. Programs written in functional style can make use of monads to structure procedures that include sequenced operations, or to define some arbitrary control flows (like handling concurrency, continuations, side effects such as input/output, or exceptions).

More information about monads at Wikipedia.

  1. .NET 3.5-4
  2. Silverlight 3-5
  3. WP7
  4. XNA
  1. Just reference "Monads.dll" file and add "using System.Monads;" to your code.
  2. Install via nuget.

PM> Install-Package Monads

Nuget link

I'm glad to see your contributions for Monads.NET. Just fork the project and pull request when you're ready.

Feel free to communicate with me by twitter or e-mail:

Released under the MIT license.

Before

string workPhoneCode;

if (person != null)
{
  if (person.Work != null)
  {
    if (person.Work.Phone != null)
    {
       workPhoneCode = person.Work.Phone.Code;
    }
  }
}

After

string workPhoneCode = person.With(p=>p.Work).With(w=>w.Phone).With(p=>p.Code);

More info at wiki:

  1. Monads for objects
  2. Monads for collections
  3. Argument checking
  4. Events

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4