Chapter 2, Building Abstractions with Data
Section - 2.2 - Hierarchical Data and the Closure Property
Exercise 2.28
1
2
3
4
5
6
7
8
9
10
11
12
#lang sicp
(define (fringe l)
(cond ((null? l) nil)
((not (pair? l)) (cons l nil))
(else (append
(fringe (car l))
(fringe (cdr l))
)
)
)
)