This is my prologdb file
trip_to_nation(X,Y,T):- % X is a city ,T is a list
list_airport(Y,A),
write(A),% [dublin,cork] list
all_trip(X,A,T). % here A is an atom and T is the list
I want to pass the list's value one by one to the all_trip such to get the data ,how it is possible?
Something like list[0],list[1] and get the data in the list .Thanks