summaryrefslogtreecommitdiff
path: root/prolog/problems/lists/conc_3/en.py
blob: e25ae326bd47070d9ce5a7fdda050b4fb9822d68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
name = 'conc/3'
slug = 'concatenate two lists'

description = '''\
<p><code>conc(L1, L2, L)</code>: the list <code>L</code> is obtained by appending the elements of <code>L2</code> to <code>L1</code>.</p>
<pre>
?- conc([1,2], [3,4], X).
  X = [1,2,3,4].
?- conc(X, [], [1,2,3]).
  X = [1,2,3].
</pre>'''

hint = {}