[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: reverse

From: Alberto Simões
Subject: Re: reverse
Date: Sat, 20 Mar 2010 20:37:48 +0000


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 :)


On Sat, Mar 20, 2010 at 7:30 PM, Duncan Patton a Campbell
<address@hidden> 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
> address@hidden

Alberto Simões

reply via email to

[Prev in Thread] Current Thread [Next in Thread]