119 Decks Ordered By PDF Download Count - Lowest First - Chse one - invert order

# Title Downloads  
1 Defining filter using (a) recursion (b) folding (c) folding with S, B and I combinators (d) folding with applicative functor and identity function 1  
2 Imperative Bowling Kata - 20 Years On - Delegating Menial Tasks to Github Copilot Chat - using Scala in IntelliJ IDEA 87  
3 Non-strict functions, bottom, and Scala by-name parameters 110  
4 De Morgan's Laws are Monoid Homomorphisms 149  
5 Symmetry in the interrelation of flatMap/foldMap/traverse and flatten/fold/sequence 155  
6 Monads do not Compose 162  
7 Ad hoc Polymorphism using Type Classes and Cats 166  
8 Year when lambda functions were introduced in various languages 169  
9 Function Composition - forward composition versus backward composition 169  
10 Imperative Bowling Kata - 20 Years On - Delegating Menial Tasks to AI Coding Tool 'Claude Code' 174  
11 Functor Composition 184  
12 Folding Cheat Sheet Series Titles 197  
13 Addendum to `Monads do not Compose` 198  
14 Sequence and Traverse - Part 2 199  
15 Monoids - Part 2 - With examples using Scalaz and Cats 199  
16 N-Queens Combinatorial Problem - Polyglot FP for Fun and Profit – Haskell and Scala - Part 4 200  
17 Drawing Heighway’s Dragon - Part 4 - Interactive and Animated Dragon Creation 201  
18 Monoids - Part 1 - With examples using Scalaz and Cats 202  
19 Monad Fact #5 205  
20 AI Concepts - MCP Neurons 206  
21 Sequence and Traverse - Part 1 210  
22 N-Queens Combinatorial Problem - Polyglot FP for Fun and Profit – Haskell and Scala - Part 2 214  
23 Game of Life - Polyglot FP - Haskell and Scala - Part 1 215  
24 Monad Transformers - Part 1 217  
25 Game of Life - Polyglot FP - Haskell and Scala - Part 2 218  
26 State Monad 218  
27 Function Applicative for Great Good of Palindrome Checker Function 221  
28 Functional Effects - Part 1 221  
29 Sequence and Traverse - Part 3 224  
30 Folding Unfolded - Part 5 227  
31 Natural Transformations 227  
32 Functional Effects - Part 2 233  
33 Folding Unfolded - Part 1 233  
34 Applicative Functor - Part 2 234  
35 Arrive at monads by going from composition of pure functions to composition of effectful functions 236  
36 Monad Fact #6 237  
37 A sighting of traverse_ in Practical FP in Scala 239  
38 ‘go-to’ general-purpose sequential collections - from Java To Scala 240  
39 The Sieve of Eratosthenes - Part 1 245  
40 Side by Side - Scala and Java Adaptations of Martin Fowler’s Javascript Refactoring Example 246  
41 Folding Unfolded - Part 4 246  
42 Monad Fact #2 247  
43 Sierpinski Triangle - Polyglot FP for Fun and Profit - Haskell and Scala 247  
44 Folding Cheat Sheet #5 - Folding a list right and left using Cons and Nil results in the identity and reverse functions 247  
45 Combinatorial Interview Problems with Backtracking Solutions - from Procedural to Functional Programming - Part 2 248  
46 Folding Unfolded - Part 2 249  
47 ApplicativeError functions handling and recovering from errors: A mnemonic to recall their signatures from their names 249  
48 Writer Monad for logging execution of functions 249  
49 The aggregate function - from sequential and parallel folds to parallel aggregation 249  
50 Folding Unfolded - Part 3 250  
51 Monad Fact #4 252  
52 Monad as Functor with pair of Natural Transformations 255  
53 Computer Graphics in Java and Scala - Part 1b 256  
54 Applicative Functor - Part 3 258  
55 Monad Fact #1 259  
56 A sighting of sequence function in Practical FP in Scala 261  
57 Game of Life - Polyglot FP - Haskell and Scala - Part 3 264  
58 Fusing Transformations of Strict Scala Collections with Views 265  
59 The Expression Problem Part 1 270  
60 The Monad Fact Series 271  
61 Quicksort - a whistle-stop tour of the algorithm in five languages and four paradigms 276  
62 Computer Graphics in Java and Scala - Part 1 277  
63 Left and Right Folds - Comparison of a mathematical definition and a programmatic one 278  
64 N-Queens Combinatorial Problem - Polyglot FP for Fun and Profit – Haskell and Scala - Part 3 281  
65 Refactoring: A First Example - Martin Fowler’s First Example of Refactoring, Adapted to Scala 281  
66 A sighting of traverseFilter and foldMap in Practical FP in Scala 282  
67 Functor Laws 287  
68 Point-free or Die - Tacit Programming in Haskell 291  
69 The Open-Closed Principle - Part 2 - The Contemporary Version - An Introduction 295  
70 Scala 3 by Example - Algebraic Data Types for Domain Driven Design - Part 2 299  
71 Monad Fact #3 301  
72 Definitions of Functional Programming 311  
73 The Sieve of Eratosthenes - Part 2 - Genuine versus Unfaithful Sieve 318  
74 Refactoring: A First Example - Martin Fowler’s First Example of Refactoring, Adapted to Java 325  
75 Nat, List and Option Monoids - From scratch - Combining and Folding - An example 327  
76 Applicative Functor - Part 1 334  
77 From Scala Monadic Effects to Unison Algebraic Effects 336  
78 Scala 3 by Example - Algebraic Data Types for Domain Driven Design - Part 1 348  
79 Folding Cheat Sheet #9 - List Unfolding - 'unfold' as the Computational Dual of 'fold', and how 'unfold' relates to 'iterate' 353  
80 Scala Left Fold Parallelisation - Three Approaches 355  
81 Function Applicative for Great Good of Leap Year Function 357  
82 Folding Cheat Sheet #8 - Folding with monoids 360  
83 Scala 3 enum for a terser Option Monad Algebraic Data Type 361  
84 Folding Cheat Sheet #4 - For functions that can be defined both as a right fold and as a left fold, one may be more efficient than the other 361  
85 Drawing Heighway’s Dragon - Part 2 - Recursive Function Simplification - From 2^n Recursive Invocations To n Tail-Recursive Invocations Exploiting Self-Similarity 362  
86 Folding Cheat Sheet #2 - Programmatic and mathematical definitions of right fold and left fold 374  
87 Sum and Product Types - The Fruit Salad & Fruit Snack Example 375  
88 Folding Cheat Sheet #3 - The universal property of fold 377  
89 Kleisli composition, flatMap, join, map, unit - implementation and interrelation - V2 updated for Scala 3 377  
90 Test Doubles - Terminology, Definitions and Illustrations - with Examples - Part 1 380  
91 Hand Rolled Applicative User Validation Code Kata 384  
92 Fibonacci Function Gallery - Part 1 390  
93 Compositionality and Category Theory 393  
94 Folding Cheat Sheet #7 - The three duality theorems of fold 398  
95 N-Queens Combinatorial Problem - Polyglot FP for Fun and Profit – Haskell and Scala - Part 1 404  
96 Algebraic Data Types for Data Oriented Programming - From Haskell and Scala to Java 409  
97 A Sighting of filterA in Typelevel Rite of Passage 411  
98 From Subtype Polymorphism To Typeclass-based Ad hoc Polymorphism - An Example 412  
99 Drawing Heighway’s Dragon - Part 1 - Recursive Function Rewrite - From Imperative Style in Pascal 64 To Functional Style in Scala 3 422  
100 The Uniform Access Principle 426  
101 The Functional Programming Triad of map, filter and fold 442  
102 The Functional Programming Triad of Folding, Scanning and Iteration - A first example in Scala and Haskell 448  
103 Combinatorial Interview Problems with Backtracking Solutions - from Procedural to Functional Programming - Part 1 449  
104 Lambda Expressions and Java 8 - Lambda Calculus, Lambda Expressions, Syntactic Sugar, First Class Functions 457  
105 Fibonacci Function Gallery - Part 2 465  
106 Folding Cheat Sheet #1 - Folding over recursively defined data structures for natural numbers and lists 507  
107 Tagless Final Encoding - Algebras and Interpreters and also Programs 528  
108 Functional Core and Imperative Shell - Game of Life Example - Haskell and Scala 528  
109 List Unfolding - 'unfold' as the Computational Dual of 'fold', and how 'unfold' relates to 'iterate' 553  
110 N-Queens Combinatorial Puzzle meets Cats 582  
111 Folding Cheat Sheet #6 - Left and right folds and tail recursion 603  
112 Monad Laws Must Be Checked 623  
113 The Open-Closed Principle - Part 1 - The Original Version 698  
114 Kleisli Composition 834  
115 Drawing Heighway’s Dragon - Part 3 - Simplification Through Separation of Concerns - Rotation Without Matrix Multiplication 835  
116 Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid 1192  
117 The Nature of Complexity in John Ousterhout’s Philosophy of Software Design 1332  
118 The Debt Metaphor - Ward Cunningham in his 2009 YouTube video 1359  
119 The Expression Problem Part 2 2222