summaryrefslogtreecommitdiff
path: root/prolog/problems/lists/sublist_2/en.py
blob: e761e19986067cc55111bc6f9def091a7d298a04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# coding=utf-8

name = 'sublist/2'
slug = 'generate sublists of a list'

description = '''\
<p><code>sublist(L, SL)</code>: <code>SL</code> is a continuous sublist of the list <code>L</code>.</p>
<pre>
  ?- sublist([1,2,3], X).
    X = [] ;
    X = [1] ;
    X = [1,2] ;
    X = [1,2,3] ;
    X = [2] ;
    X = [2,3] ;
    X = [3].
</pre>'''

hint = {}