title: How list of prefix works in prolog
body: <p>I tryed to understand how this code works but i couldn't.</p>
  
  <pre><code>prefix(P,L) :- append(P,_,L).
  </code></pre>
  
  <p>I used query like that <code>prefix(X,[a,b,c,d]).</code>If you have got a time, can you explain to me how it works?. Thank you.</p>