Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# Lambda and LINQ tutorial for an experienced functional programmer [closed]

I would like to learn the "functional" parts of C# (.NET 4). As a long time Haskell and Lisp programmer, I would prefer not to get distracted by explanations of basic concepts. Is there a book/tutorial that I should check out?

like image 610
fasss Avatar asked Sep 26 '11 20:09

fasss


People also ask

What C is used for?

C programming language is a machine-independent programming language that is mainly used to create many types of applications and operating systems such as Windows, and other complicated programs such as the Oracle database, Git, Python interpreter, and games and is considered a programming foundation in the process of ...

What is the full name of C?

In the real sense it has no meaning or full form. It was developed by Dennis Ritchie and Ken Thompson at AT&T bell Lab. First, they used to call it as B language then later they made some improvement into it and renamed it as C and its superscript as C++ which was invented by Dr. Stroustroupe.

Is C language easy?

C is a general-purpose language that most programmers learn before moving on to more complex languages. From Unix and Windows to Tic Tac Toe and Photoshop, several of the most commonly used applications today have been built on C. It is easy to learn because: A simple syntax with only 32 keywords.

Why do we write C?

We write C for Carbon Because in some element the symbol of the element is taken form its first words and Co for Cobalt beacause in some elements the symbol of the element is taken from its first second letters, so that the we don't get confuse.


2 Answers

Check this out 101 Examples on Linq here

like image 81
Nivid Dholakia Avatar answered Oct 01 '22 14:10

Nivid Dholakia


Just look at the docs for the methods in System.Linq.Enumerable.

These methods are standard functional programming operations with slightly different names (Select == Map, Where == Filter, Aggregate = foldl, etc)

You'll also need to understand iterators; see Jon Skeet's excellent in-depth article.

You should already understand lambda expressions and closures.

like image 21
SLaks Avatar answered Oct 01 '22 12:10

SLaks