mylast(x,L|T) :- mylast(x,T).mylast(x,L|[]) :- x=L. mylast(3, [1,2,3]).
Standard input is empty
prog.pl:1:11: syntax error: , or ) expected prog.pl:2:11: syntax error: , or ) expected 2 error(s) compilation failed
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!