title: prolog list keeps expanding when semi colon is pressed
body: <p>Hi I am creating a predicate list from, which if used gives you the numbers between a certain range. So say for instance</p>
  
  <pre><code>list_from(1,5,X).
  </code></pre>
  
  <p>would give you</p>
  
  <pre><code>X=[1,2,3,4,5].
  </code></pre>
  
  <p>However I got my predicate to work, but the list just keeps expanding, so it keeps increasing my one and I do not want it to. This is what is happening.</p>
  
  <pre><code>?- list_from(1,7,X).
  X = [1, 2, 3, 4, 5, 6, 7] ;
  X = [1, 2, 3, 4, 5, 6, 7, 8] ;
  X = [1, 2, 3, 4, 5, 6, 7, 8, 9] ;
  X = [1, 2, 3, 4, 5, 6, 7, 8, 9|...] ;
  X = [1, 2, 3, 4, 5, 6, 7, 8, 9|...] 
  </code></pre>
  
  <p>How do I get this to stop?</p>
  
  <p>Here is my code</p>
  
  <pre><code>list_from(M,N,[]):- M &gt; N.
  list_from(M,N,[M|T]):- Mplusone is M + 1, list_from(Mplusone,N,T).
  </code></pre>
  
  <p>if I remove Mplusone and just M instead I get an error "Out of global stack"</p>