Making a list of all sublists of a list, starting from the beginning of the original list
<p>For example, if x is [1,2,3,4] then 
     my program returns </p>

<pre><code>     [ [], [1], [1,2], [1,2,3], [1,2,3,4] ]
</code></pre>
