Blob


1 ;; The first three lines of this file were inserted by DrScheme. They record metadata
2 ;; about the language level of this file in a form that our tools can easily process.
3 #reader(lib "htdp-beginner-reader.ss" "lang")((modname 11.2.4) (read-case-sensitive #t) (teachpacks ((lib "draw.ss" "teachpack" "htdp") (lib "arrow.ss" "teachpack" "htdp"))) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ((lib "draw.ss" "teachpack" "htdp") (lib "arrow.ss" "teachpack" "htdp")))))
4 A deep-list is either
5 1. a symbol or
6 2. (cons dl empty) where dl is a deep-list.
8 depth : deep-list -> number
9 Consumes a deep-list dl and determines how many
10 cons were used to construct it.
12 (define (depth dl)
13 (cond
14 []
15 []))