linq - How to grasp all C# functional features? -


i'm using lambdas in c# lot (linq of many flavours, typed helpers in asp.net mvc, automapper api etc), can't start use c# functional features in own code, because can't figure out cool things can them. use them intuitively of time.

is there reference or quick (but full) guide this. i'm not looking msdn reference, quick explanation of c# functional features whole. if can narrowed down list few links blog posts -- acceptable too.

update after question closed: seems long explanation no clear, i'll try narrow down: need list of concepts can use write own code (not consume other's apis). acceplted answer need, thanks.

here nice codeproject article explains functional features introduced in c#. has easy understand examples each feature:

functional programming in c#

the article provides explanations , examples functions , first-class values:

  • function types - delegates, generic function types, predicates, actions
  • function values - storing , passing functions parameters
  • function arithmetic - adding , subtracting functions

after that, article talks functional programming in c#, covering these points:

  • using functions create generic constructs
  • using linq
  • high-order functions - functions handle other functions, function composition
  • asynchronous functions - explains begininvoke, iscompleted, endinvoke, , using asynchronous functions callbacks
  • tuples - dynamic data structures
  • closures - explains scope of variables in delegates , lambda functions, , explains sharing data , caching
  • recursion using high-order functions
  • partial functions - reducing number of function arguments using default values
  • curry functions - breaking n argument function n single argument functions

Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -