summaryrefslogtreecommitdiff
path: root/prolog/problems/sets/subset_2
diff options
context:
space:
mode:
Diffstat (limited to 'prolog/problems/sets/subset_2')
-rw-r--r--prolog/problems/sets/subset_2/en.py18
-rw-r--r--prolog/problems/sets/subset_2/sl.py18
2 files changed, 18 insertions, 18 deletions
diff --git a/prolog/problems/sets/subset_2/en.py b/prolog/problems/sets/subset_2/en.py
index eb96ac0..e31b60f 100644
--- a/prolog/problems/sets/subset_2/en.py
+++ b/prolog/problems/sets/subset_2/en.py
@@ -6,15 +6,15 @@ slug = 'generate all subsets of a set'
description = '''\
<p><code>subset(Set, Subset)</code>: the set <code>Subset</code> is a subset of <code>Set</code>. This predicate should generate all valid solutions, one by one.</p>
<pre>
- ?- subset([1,2,3], SS).
- SS = [1,2,3] ;
- SS = [1,2] ;
- SS = [1,3] ;
- SS = [1] ;
- SS = [2,3] ;
- SS = [2] ;
- SS = [3] ;
- SS = [].
+?- subset([1,2,3], SS).
+ SS = [1,2,3] ;
+ SS = [1,2] ;
+ SS = [1,3] ;
+ SS = [1] ;
+ SS = [2,3] ;
+ SS = [2] ;
+ SS = [3] ;
+ SS = [].
</pre>'''
hint = {}
diff --git a/prolog/problems/sets/subset_2/sl.py b/prolog/problems/sets/subset_2/sl.py
index eae4fcf..012d132 100644
--- a/prolog/problems/sets/subset_2/sl.py
+++ b/prolog/problems/sets/subset_2/sl.py
@@ -6,15 +6,15 @@ slug = 'Generiraj vse podmnožice dane množice'
description = '''\
<p><code>subset(Set, Subset)</code>: množica <code>Subset</code> je podmnožica od <code>Set</code>. Ta predikat naj, eno po eno, generira vse veljavne podmnožice.</p>
<pre>
- ?- subset([1,2,3], SS).
- SS = [1,2,3] ;
- SS = [1,2] ;
- SS = [1,3] ;
- SS = [1] ;
- SS = [2,3] ;
- SS = [2] ;
- SS = [3] ;
- SS = [].
+?- subset([1,2,3], SS).
+ SS = [1,2,3] ;
+ SS = [1,2] ;
+ SS = [1,3] ;
+ SS = [1] ;
+ SS = [2,3] ;
+ SS = [2] ;
+ SS = [3] ;
+ SS = [].
</pre>'''
hint = {}