December 2021
Beginner
840 pages
47h 29m
English
Sophisticated, dynamic memory data structures, such as trees, are built from lists, which are just cons cells.
Consider the following BNF specification of a binary tree:
The following sentences in the language defined by this grammar represent binary trees:
The following function accepts a binary tree as an argument and returns the number of internal and leaf nodes in the tree:
In this function, and in others we have seen ...