문제

Develop the predicate a-student? that returns true if the student has a gpa above 3.7, and use it to develop the function a-students?, which consumes a list of students, and produces a list of all the students who have gpa’s above 3.7. Use filter.

도움이 되었습니까?

해결책

As the hint says - use filter in your a-students function:

(filter (lambda (student)
          (a-student? (student-GPA student)))
        list-of-students)
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top