From 39e171d652db076dd96fe3afbc77e26aafd7fa32 Mon Sep 17 00:00:00 2001 From: Timotej Lazar <timotej.lazar@fri.uni-lj.si> Date: Fri, 25 Mar 2016 13:48:14 +0100 Subject: Prolog: clarify instructions for sublist_2 --- prolog/problems/lists_advanced/sublist_2/en.py | 4 +++- prolog/problems/lists_advanced/sublist_2/sl.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'prolog/problems') 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 = [] ; -- cgit v1.2.1