CS 3304: Comparative Languages |
FP Foundations, Scheme |
[ Course Documents ] : [ FP Foundations, Scheme ] | ||||||||
|
(define (flat-equal lis1 lis2) (cond ((null? lis1) (null? lis2)) ((null? lis2) '()) ((eqv? (car lis1) (car lis2)) (flat-equal (cdr lis1) (cdr lis2))) (else '()) ) )