title: Check if an element is member of a list
body: <p>Basically, I'm trying to create the standard member predicate, in order to avoid having to load modules into my project.</p>
  
  <p>This is my code so far, but unfortunately it isn't working. What am I doing wrong? I even put the cut operator (!) in there to make sure it worked, but it doesn't...</p>
  
  <pre><code>/**
  * Checks if an element is part of a list
  * @param [H|T] List to evaluate
  * @param Elem Elem to check
  */
  memberCheckSimple([], _):- !, fail.     /* stop condition */
  memberCheckSimple([H|T], Elem):-
    Elem \= H,                            /* check if element equals head of list and negate it */
    memberCheckSimple(T, Elem).           /* loop */
  memberCheckSimple(_, _).                /* only gets here if Elem belongs to list */
  </code></pre>