title: Increment list items by a certain value in prolog
body: <p>I'm trying to write a predicate that increments a list item by a certain value. I wrote this one but it's not giving me the correct result:</p>
  
  <pre><code>%--Increments every single list item by a certain Value.
  incList([],[],_).
  incList([X | List], [X2 | List2],Value) :-
      incList(List,List2),
      X2 is X + Value.
  </code></pre>
  
  <p>It only increments the first one. Any solutions on how to solve this without changing the structure of the predicate? Thank you.</p>