In fact, you construct the path through state path on return only in the third argument here: path(X,Y,). (Additionally, the solution you give is not a reachable state, the second line has a void on a wrong position, plus the path is reversed).
0 Comments
Leave a Reply. |