diff options
author | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-03-17 14:19:45 +0100 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-03-17 14:19:45 +0100 |
commit | cf4e59c9d6bce337514fc7d77120baced0d6d7bc (patch) | |
tree | 33f7cd7d3ae9595ad548427f3a718f5918935e53 /prolog/problems/lists_advanced/shiftright_2/en.py | |
parent | a9416de1d2bde1b2327928717d00d262160912af (diff) |
Prolog: split lists exercises into two groups
Diffstat (limited to 'prolog/problems/lists_advanced/shiftright_2/en.py')
-rw-r--r-- | prolog/problems/lists_advanced/shiftright_2/en.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/prolog/problems/lists_advanced/shiftright_2/en.py b/prolog/problems/lists_advanced/shiftright_2/en.py new file mode 100644 index 0000000..63e11cf --- /dev/null +++ b/prolog/problems/lists_advanced/shiftright_2/en.py @@ -0,0 +1,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 = {} |