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

id = 117
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 = {}