summaryrefslogtreecommitdiff
path: root/prolog/problems/sets/is_subset_2/en.py
blob: 00d15e6cfd685db44d9655b47a8e657e51f4c2ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# coding=utf-8

name = 'is_subset/2'
slug = 'check if one set is a subset of another'

description = '''\
<p><code>is_subset(S1, S2)</code>: the set <code>S1</code> is a subset of <code>S2</code>.</p>
<pre>
?- is_subset([2,1,3,5,0], [3,2,1,4,5,9]).
  false.
?- is_subset([2,1,3,5], [3,2,1,4,5,9]).
  true.
</pre>'''

hint = {}