Guided Practice 6.6: Using tree-fold

Using tree-fold and the data definition in the lesson, write the following functions:

;; number-of-nodes : Tree -> Number
;; RETURNS: the number of nodes in the given tree.

;; increment-all : Tree -> Tree
;; RETURNS: a tree just like the original, but in which all of the
;; leaves have contents one more than that in the original.

[ANSWER]


Last modified: Mon Sep 18 16:49:01 Eastern Daylight Time 2017