title: Building a link structure recursively in Prolog
body: <p>I'm trying to build the following structure recursively using Prolog</p>
  <pre><code>link(link(link(x, y), z), w) 
  </code></pre>
  <p>while receiving the arguments in this form:</p>
  <pre><code>xyzw
  </code></pre>
  <p>How could I achieve this ?
  I've already tried spliting my arguments using:</p>
  <pre><code>E=..[X,Args]
  </code></pre>
  <p>which gives me:</p>
  <pre><code>X=x;Args=[y,z,w]
  </code></pre>
  <p>but I can't figure out how to build the link(...,w) structure recursively.</p>