title: Prolog - list definition with dot
body: <p>I am reading the following <a href="http://www.learnprolognow.org/lpnpage.php?pagetype=html&amp;pageid=lpn-htmlse38" rel="nofollow noreferrer">book</a> and it mentions the following definition of list (example):</p>
  
  <pre><code>?-  .(a,[])  ==  [a].
  </code></pre>
  
  <p>returns</p>
  
  <pre><code>yes
  </code></pre>
  
  <p>I tried it with SWI-Prolog and it returned error. What is analog of this expression in SWI-Prolog? Why does it throw error?</p>