Re: reverse

Alberto Simões <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.