|
From: | Duncan Patton a Campbell |
Subject: | reverse |
Date: | Sat, 20 Mar 2010 13:30:35 -0600 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |