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

name = 'rev/2'
slug = 'Obrni seznam'

description = '''\
<p><code>rev(L1, L2)</code>: seznam <code>L2</code> ima elemente v obratnem vrstnem redu kot seznam <code>L1</code>.</p>
<pre>
?- rev([1,2,3], X).
  X = [3,2,1].
?- rev([], X).
  X = [].
</pre>'''

hint = {}