Transforming your C# code to Functional Style
summary
Shows concrete C# rewrites: replace for/foreach and mutable accumulators with LINQ Where/Select and passing lambdas, turning imperative loops into internal iterators that produce new collections without explicit mutation. Demonstrates laziness of intermediate ops (no work until a terminal call like ToList or First) and easy parallelism via parallel collections/PLINQ, applies tell‑don’t‑ask and single level of abstraction by moving booking logic into a bookIfAvailable method, and reports that these changes make code shorter, safer and trivially parallelizable.
AI-written summary · about
chapters (12)
- 0:00Start
- 0:45Higher-Order Functions
- 2:48Iterating
- 3:17External Iterator
- 6:16Expressiveness
- 6:46Internal Iterator
- 14:05Mutability versus Immutability
- 17:03Double Values
- 17:17Doubling the Values
- 18:07Select Method
- 24:52Being Lazy
- 30:41The Ask Example
related talks
58mTransforming Your C# Code to Functional Style
01h 09mFunctional Programming with C#
58mFunctional Programming with C#
01h 00mC#'s Functional Journey
56mChange your habits: Modern techniques for modern C#
01h 01mBut… what is C# doing in an event about functional programming?
56mC# 8 and Beyond
37mC# 8 and Beyond
