title: How to expand a resulting list in SWI-Prolog?
body: <pre><code>?- length(L,25).
  L = [_G245, _G248, _G251, _G254, _G257, _G260, _G263, _G266, _G
  269|...].
  </code></pre>
  
  <p>If I use write(L) following the length predicate then the interpreter prints the list twice, one expanded and the other not.</p>