#Development post: Fun with pure C# and

Posted: 2017/05/20 in Uncategorized

#Development post: Fun with pure C# and monads – We are all fascinated by pure languages like Haskell, but unfortunately have to code in C#. We could complain to our neighbor all day, but instead, what if we could also do something really pure in C#. Actually we can, it’s called LINQ:
var sum = from a in new[] { 1 }
from b in new[] { 2 }
from c in new[] { 3 }
where a + b > c
select a + b + c;


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s