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

name = 'len/2'
slug = 'find the length of a list'

description = '''\
<p><code>len(L, Len)</code>: <code>Len</code> is the length of the list <code>L</code>.</p>
<pre>
?- len([1,2,3], Len).
  Len = 3.
</pre>'''

hint = {}