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

name = 'count/3'
slug = 'Preštej kolikokrat se element pojavi v seznamu'

description = '''\
<p><code>count(X, L, N)</code>: <code>N</code> je število kolikokrat se element <code>X</code> pojavi v seznamu <code>L</code>.</p>
<pre>
?- count(1, [1,2,1,3,1], N).
  N = 3.
</pre>'''

hint = {}