title: Traverse a list in Prolog
body: <p>I have a problem like this: find all elements in a list such that all element(s) immediately besides it is/are odd numbers.</p>
  
  <p>For example</p>
  
  <pre><code>?- find([20,1,2,3,4,5,6,7,8,10], L).
  L = [20, 2, 4, 6]
  </code></pre>
  
  <p>Normally in other languages I would traverse the list and check the condition, but I don't know how to "think" in Prolog in this scenario. How should I approach this?</p>