Question: The complete scheme code below: (define (filter-out-er fn) (define (filter-processing x) (if (null? x) '() (if (fn (car x)) (filter-processing (cdr x)) (cons (car x)

The complete scheme code below:

(define (filter-out-er fn) (define (filter-processing x) (if (null? x) '() (if (fn (car x)) (filter-processing (cdr x)) (cons (car x) (filter-processing (cdr x)))) ) ) filter-processing)

Can you explain why need to add " filter-processing" in last line inside the brackets? Otherwise the program will report an error.

Thank you so much.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!