(Scheme) Take a list and return new list with count of positive, negative, and zeros
问题 I am attempting to accept a list, have it count the positive, negative, and zeros, and return a new list. The only thing I notice as I'm debugging is that the list is iterating through, but it is not utilizing any of the conditionals. So its successfully recursively calling itself, and then it just errors once its empty. (define (mydisplay value) (display value) (newline) #t ) (define neg 0) (define z 0) (define pos 0) (define (posneg lst) (cond ((NULL? lst)) (NEGATIVE? (car lst) (+ 1 neg))