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

id = 147
name = 'firstMinus/2'
slug = 'negate the first element in a list of numbers'

description = '''\
<p><code>firstMinus(L1, L2)</code>: the list <code>L2</code> is the same as <code>L1</code>, except for the first element that may be negated. Your code should return both solutions.</p>
<pre>
  ?- firstMinus([1,2,3], L).
    L = [1,2,3] ;
    L = [-1,2,3].
</pre>'''

hint = {}