5.16 Chapter Summary
This chapter introduced readers to functional programming through the Scheme programming language. We established that a recursive thought process toward function conception and implementation is an essential tenet of functional programming. We studied λ-expressions; the definition of recursive functions; and cons cells, lists, and S-expressions. We studied the use of the cons cell as a primitive for building data structures, which we defined using BNF. Data structures and the functions that manipulate them are natural reflections of each other—the BNF grammar for the data structure provides a pattern for the function definition. We also explored improved program readability and local binding through let, let*, and letrec ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access