title: Prolog list not printing all the elements on console
body: <p>I am using SWI-PROLOG version 6.6.6</p>
  
  <p>I want to print all the attributes of a particular predicate type.</p>
  
  <p>I have a predicate called law with arity 2.</p>
  
  <p>Some of the facts are</p>
  
  <pre><code>law(borrow,'To borrow Money on the credit of the United States').
  law(commerce,'To regulate Commerce with foreign Nations, and among the several States, and with the Indian Tribes').
  law(unifomity,'To establish an uniform Rule of Naturalization, and uniform Laws on the subject of Bankruptcies throughout the United States').
  law(money,'To coin Money, regulate the Value thereof, and of foreign Coin, and fix the Standard of Weights and Measures').
  law(punishment,'To provide for the Punishment of counterfeiting the Securities and current Coin of the United States').
  law(establishment,'To establish Post Offices and post Roads').
  law(exclusiverights,'To promote the Progress of Science and useful Arts, by securing for limited Times to Authors and Inventors the exclusive Right to their respective Writings and Discoveries').
  law(court,'To constitute Tribunals inferior to the supreme Court').
  </code></pre>
  
  <p>etc.</p>
  
  <p>Now I want to access a law by entering its type.
  Such as,</p>
  
  <pre><code>power(X) :- law(X,Y), display('\nCongress has the power : '),display(Y).
  powers(ALL) :- display('\nCongress has the powers : '), law(_,Y), display('\n'), display(Y).
  </code></pre>
  
  <p>This works perfectly. Now, I also want the user to know what all types of laws are there so that the user can enter it as a query to get the corresponding law.
  ex <code>power(money).</code></p>
  
  <p>For this, I made a query to get all these keywords and add them to a list and display the list.
  But the list that is finally printed is not complete.</p>
  
  <pre><code>powerList(L) :- findall(X,law(X,_), L).
  </code></pre>
  
  <p>I use this code to get the list.
  But the output on the console is </p>
  
  <pre><code>L = [borrow, commerce, unifomity, money, punishment, establishment, exclusiverights, court, piracyfelony|...].
  </code></pre>
  
  <p>But, there are more law types even after piracyfelony and they are not getting printed to the console. How do I get them printed?</p>