summaryrefslogtreecommitdiff
path: root/prolog/problems/lists_advanced/shiftright_2/en.py
blob: 63e11cf18ac91a7a1106503f58082aabca3a9521 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# coding=utf-8

name = 'shiftright/2'
slug = 'shift a list right'

description = '''\
<p><code>shiftright(L1, L2)</code>: the list <code>L2</code> is obtained from L1 by shifting elements to the right by one (circular shift).</p>
<pre>
?- shiftright([1,2,3,4,5], X).
  X = [5,1,2,3,4].
</pre>'''

hint = {}