name = 'firstMinus/2' slug = 'negate the first element in a list of numbers' description = '''\
firstMinus(L1, L2)
: the list L2
is the same as L1
, except for the first element that may be negated. Your code should return both solutions.
?- firstMinus([1,2,3], L). L = [1,2,3] ; L = [-1,2,3].''' hint = {}