Toggle navigation
?
users online
Logout
Open hangout
Open chat for current file
% reverse(A, B) relates the list A with its reversal B reverse([], []). reverse([Element|Tail], Reversed) :- reverse(Tail, ReversedTail), append(ReversedTail, [Element], Reversed). % A list is considered a palindrome if it equals its reversal palindrome(List) :- reverse(List, List).