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

id = 113
name = 'shiftleft/2'
slug = 'shift a list left'

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

hint = {}