title: How to find the positive numbers in a list in Prolog?
body: <p>I want to write a code in prolog that gets a list and find its positive numbers and adds them into a new list as below : </p>
  
  <pre><code>?- findPositives([-1,2,3,-5,-7,9],Result)
  Result : [2,3,9]
  </code></pre>
  
  <p>How can I write this code? </p>