如果学生的gpa在3.7以上,则开发返回true的谓词a-students?,并使用它开发函数a-students?,该函数使用一个学生列表,并生成gpa高于3.7的所有学生的列表。使用过滤器。
发布于 2014-04-07 02:28:47
如提示所示-在您的filter函数中使用a-students:
(filter (lambda (student)
(a-student? (student-GPA student)))
list-of-students)https://stackoverflow.com/questions/22902646
复制相似问题