Answers for "last element prolog"

0

last element prolog

last(X,[X]).
last(X,[_|Z]) :- last(X,Z).
Posted by: Guest on October-21-2021

Browse Popular Code Answers by Language