summaryrefslogtreecommitdiff
path: root/prolog/problems/lists/conc_3/en.py
blob: 184ca442b38d7c9332c2b9a0e17b766b25dd26c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# coding=utf-8

id = 104
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 = {}