Hello I would like to ask a question to dsstester001, now that he has the solution. Was this any kind of homework?
I ask because it is easy to find this and other solutions anywhere in the web or in reference books... and because I am a teacher (not of Prolog) and I wonder if my students annoy people on mailing lists to answer they homework :) Cheers Alberto On Sat, Mar 20, 2010 at 7:30 PM, Duncan Patton a Campbell <[email protected]> wrote: > > revR([], []). > revR([H|T], L) :- > revR1(T, L, [H]). > > revR1([], L, L). > revR1([H|T], L, L1) :- > revR1(T, L, [H|L1]). > > This is just one obvious implementation. > > Dhu > > > _______________________________________________ > Users-prolog mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/users-prolog > -- Alberto Simões _______________________________________________ Users-prolog mailing list [email protected] http://lists.gnu.org/mailman/listinfo/users-prolog
