Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. odwroc2(A, [], A).
  2. odwroc2(L, [G|O], A) :- odwroc2(L, O, [G|A]).
  3.  
  4. palindrom(A, A).
  5. palindrom([G1|O1], [G1|O2]) :- palindrom(O1, O2).
  6. czypalindrom(L) :- odwroc2(L2, L, []), palindrom(L, L2).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement