tags:

views:

109

answers:

2

Before someone asks, this is not a homework, I am a Spanish major, but I would like to understand some programming...

(define (x lis)
  (cond
    ((null?? lis) 0)
    ((not (list? (car lis)))
     (cond
       ((eq? (car lis) nil)
        (x (cdr lis)))
       (else (+1 (x (cdr lis))))))
    (else (+ (x (car lis))
             (x (cdr lis))))))
+6  A: 

you got a party to go to tomorrow night and got no time for your CSC 519 assignment ??

Scott Evernden
Owned, owned, owned.
phoebus
Did you do a search via Google for that?
grettke
Wow, lame question at best!
danielrsmith
A: 

counts non-nil leaves of a tree

Javier