Copyright
Brief Table of Contents
Table of Contents
Preface
Acknowledgments
About this book
About the author
Lesson 1. Getting started with Haskell
1.1. Welcome to Haskell
1.1.1. The Haskell Platform
1.1.2. Text editors
1.2. The Glasgow Haskell Compiler
1.3. Interacting with Haskell—GHCi
1.4. Writing and working with Haskell code
Summary
Unit 1. Foundations of functional programming
Lesson 2. Functions and functional programming
2.1. Functions
2.2. Functional programming
2.3. The value of functional programming in practice
2.3.1. Variables
2.3.2. Variables that are variable
Lesson 3. Lambda functions and lexical scope
3.1. Lambda functions
3.2. Writing your own where clause
3.3. From lambda to let: making your own variable variables!
3.4. Practical lambda functions and lexical scope
Lesson 4. First-class functions
4.1. Functions as arguments
4.1.1. Lambda functions as arguments
4.1.2. Example—custom sorting
4.2. Returning functions