title: How to return single list of answers (instead of multiple individual answers) in prolog?
body: <p>I have a prolog definition that returns multiple answers. I would like instead of this, to return a single list containing all possible answers.</p>
  
  <p>E.g.</p>
  
  <pre><code>alpha;
  beta;
  gamma;
  delta;
  </code></pre>
  
  <p>to</p>
  
  <pre><code>[alpha, beta, gamma, delta];
  </code></pre>
  
  <p>How can this be done in prolog?</p>