summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--prolog/problems/lists_advanced/sublist_2/en.py4
-rw-r--r--prolog/problems/lists_advanced/sublist_2/sl.py4
2 files changed, 6 insertions, 2 deletions
diff --git a/prolog/problems/lists_advanced/sublist_2/en.py b/prolog/problems/lists_advanced/sublist_2/en.py
index e71259b..67b50a4 100644
--- a/prolog/problems/lists_advanced/sublist_2/en.py
+++ b/prolog/problems/lists_advanced/sublist_2/en.py
@@ -2,7 +2,9 @@ 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>
+<p><code>sublist(L, SL)</code>: <code>SL</code> is a continuous sublist of the
+list <code>L</code>. Your program should return every possible sublist; each
+answer may be returned more than once.</p>
<pre>
?- sublist([1,2,3], X).
X = [] ;
diff --git a/prolog/problems/lists_advanced/sublist_2/sl.py b/prolog/problems/lists_advanced/sublist_2/sl.py
index 50a6878..6d8ee85 100644
--- a/prolog/problems/lists_advanced/sublist_2/sl.py
+++ b/prolog/problems/lists_advanced/sublist_2/sl.py
@@ -4,7 +4,9 @@ name = 'sublist/2'
slug = 'Generiraj vse podsezname danega seznama'
description = '''\
-<p><code>sublist(L, SL)</code>: <code>SL</code> je podseznam seznama <code>L</code>. Predikat naj vrne vse možne podsezname, enega po enega.</p>
+<p><code>sublist(L, SL)</code>: <code>SL</code> je podseznam seznama
+<code>L</code>. Predikat naj vrne vse možne podsezname, enega po enega;
+odgovori se lahko tudi podvajajo.</p>
<pre>
?- sublist([1,2,3], X).
X = [] ;