如何在Prolog中比较两个列表的两个元素?
find
应该返回下一条可用路线,所以Departure
应该小于或等于Dep
%fact
plane('JFK','BLL', [13,00],[23,00]).
%rule
find(A,B,Departure,Arrival):-
plane(A,B,Dep,Arr)
% compare Departure and Dep ... to be sure we pick up right plane