title: Beginner prolog programming
body: <p>I'm trying to learn prolog. I want to write in prolog a code for a general list of numbers. So far I have <code>pick_numbers_general(List, N, NumList)</code>, where <code>List</code> is a general list (including nested ones), and <code>N</code> is a number.</p>
  
  <p>The predicate succeeds if <code>NumList</code> is a list of the numbers in <code>List</code>, including those in nested lists, greater than <code>N</code>. The appearance order of the 
  numbers in <code>Numlist</code> is the same as that in <code>L</code>, so for instance, <code>pick_numbers_general([g,h,1,[2,[n,3]],p],1,NumList)</code> is true when <code>NumList</code> is <code>[2,3]</code>.</p>