summaryrefslogtreecommitdiff
path: root/prolog/problems/lists/palindrome_1/en.py
blob: 3e5f561b54132b8927ed8693c0e390d55af74a39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# coding=utf-8

id = 112
name = 'palindrome/1'
slug = 'check if list is a palindrome'

description = '''\
<p><code>palindrome(L)</code>: the elements of list <code>L</code> are the same when read from the front or back of the list.</p>
<pre>
  ?- palindrome([1,2,3,2,1]).
    true.
  ?- palindrome([1,2,3]).
    false.
</pre>'''

hint = {}