title: Can someone please explain to me how the pipe "|" character works in Prolog?
body: <p>I have this code:</p>
  <pre><code> [a,b,[]]=[First,Second,Third|Fourth].
  </code></pre>
  <p>and it gives me the following output:</p>
  <pre><code> First = a, Second = b, Third = Fourth, Fourth = [].
  </code></pre>
  <p>I'd like to know how <code>Third</code> got assigned to <code>Fourth</code>.</p>