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

name = 'sum/2'
slug = 'Izračunaj vsoto elementov v seznamu'

description = '''\
<p><code>sum(L, Sum)</code>: <code>Sum</code> je vsota vseh elementov v seznamu <code>L</code>.</p>
<pre>
  ?- sum([1,2,3], Sum).
    Sum = 6.
</pre>'''

hint = {}