From 39e171d652db076dd96fe3afbc77e26aafd7fa32 Mon Sep 17 00:00:00 2001 From: Timotej Lazar 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 = '''\ -

sublist(L, SL): SL is a continuous sublist of the list L.

+

sublist(L, SL): SL is a continuous sublist of the +list L. Your program should return every possible sublist; each +answer may be returned more than once.

 ?- 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 = '''\
-

sublist(L, SL): SL je podseznam seznama L. Predikat naj vrne vse možne podsezname, enega po enega.

+

sublist(L, SL): SL je podseznam seznama +L. Predikat naj vrne vse možne podsezname, enega po enega; +odgovori se lahko tudi podvajajo.

 ?- sublist([1,2,3], X).
   X = [] ;
-- 
cgit v1.2.1