sicp/2_28.sch

6 lines
132 B
Plaintext
Raw Permalink Normal View History

2021-11-30 22:33:15 +00:00
(define (fringe t)
(cond ((null? t) '())
((not (pair? t)) (list t))
(else (append (fringe (car t))
(fringe (cdr t))))))