2013-03-31 32 views

回答

1

看一看的findall/3 bagof/3,SETOF/3,例如:

student(X, ListOfCourses) :- 
    findall(Courses, enroll(X, Courses), ListOfCourses).