Thinking in LINQ Harnessing the Power of Functional Programming in .NET Applications

LINQ represents a paradigm shift for developers used to an imperative/object oriented programming style, because LINQ draws on functional programming principles. Thinking in LINQ addresses the differences between these two by providing a set of succinct recipes arranged in several groups, including:...

Full description

Bibliographic Details
Main Author: Mukherjee, Sudipta. author (author)
Format: eBook
Language:Inglés
Published: Berkeley, CA : Apress 2014.
Edition:1st ed. 2014.
Series:Expert's voice in networking.
Subjects:
See on Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009629484106719
Table of Contents:
  • Contents at a Glance; Contents; About the Author; About the Technical Reviewer; Acknowledgments; Introduction; Chapter 1: Thinking Functionally; 1-1. Understanding Functional Programming; 1-2. Using Func in C# to Represent Functions; 1-3. Using Various Types of Functions; Generator Functions; Statistical Functions; Projector Functions; Filters; 1-4. Understanding the Benefits of Functional Programming; Composability; Lazy Evaluation; Immutability; Parallelizable; Declarative; 1-5. Getting LINQPad; Chapter 2: Series Generation; 2-1. Math and Statistics: Finding the Dot Product of Two Vectors
  • ProblemSolution; How It Works; 2-2. Math and Statistics: Generating Pythagorean Triples; Problem; Solution; How It Works; 2-3. Math and Statistics: Finding a Weighted Sum; Problem; Solution; How It Works; 2-4. Math and Statistics: Finding the Percentile for Each Element in an Array of Numbers; Problem; Solution; How It Works; 2-5. Math and Statistics: Finding the Dominator in an Array; Problem; Solution; How It Works; 2-6. Math and Statistics: Finding the Minimum Number of Currency Bills Required for a Given Amount; Problem; Solution; How It Works
  • 2-7. Math and Statistics: Finding Moving AveragesProblem; Solution; How It Works; 2-8. Math and Statistics: Finding a Cumulative Sum; Problem; Solution; How It Works; 2-9. Recursive Series and Patterns: Generating Recursive Structures by Using L-System Grammar; Problem; Solution; How It Works; 2-10. Recursive Series and Patterns Step-by-Step Growth of Algae; Problem; Solution; How It Works; 2-11. Recursive Series and Patterns: Generating Logo Commands to Draw a Koch Curve; Problem; Solution; How It Works
  • 2-17. Collections: Finding the Larger or Smaller of Several Sequences at Each IndexProblem; Solution; How It Works; 2-18. Number Theory: Generating Armstrong Numbers and Similar Number Sequences; Problem; Solution; How It Works; 2-19. Number Theory: Generating Pascal's Triangle Nonrecursively; Problem; Solution; How It Works; 2-20. Game Design: Finding All Winning Paths in an Arbitrary Tic-Tac-Toe Board; Problem; Solution; How It Works; 2-21. Series in Game Design: Solving Go Figure; Problem; Solution; How It Works
  • 2-22. Miscellaneous Series: Finding Matching Pairs from Two Unsorted Collections