List of Figures
Lesson 2. Functions and functional programming
Lesson 3. Lambda functions and lexical scope
Figure 3.1. The simple function rewritten as a lambda function
Figure 3.2. How sumSquareOrSquareSum works using a lambda function
Figure 3.3. The sumSquareOrSquareSum function rewritten to use a let expression
Lesson 5. Closures and partial application
Figure 5.1. The genIfEven function lets you build ifEvenX functions simply.
Figure 5.2. ifEvenInc with closure
Figure 5.4. Capturing the host value in a closure
Lesson 6. Lists
Get Get Programming with Haskell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.