Can someone explain how the following Prolog recursion works ?
findRoute(A,A,_).
findRoute(A,C,Path) :-
nextCnvZone(A,B),
\+ member(B,Path),
findRoute(B,C,[B|Path]).
I can understand the second part but could not understand the first part i.e what is the first findRoute(A,A,_).
doing ?