about summary refs log tree commit diff stats
path: root/html/074list.mu.html
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-05-26 19:01:35 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-05-26 19:01:35 -0700
commita0decd22b6534663818c1780b1726d59cbe615c2 (patch)
tree9d3ac805613b3bdef0799fe4e3a29018c54e62fa /html/074list.mu.html
parentd3f1d63c7950b72dabf16b41fc9e9589e0e192cd (diff)
downloadmu-a0decd22b6534663818c1780b1726d59cbe615c2.tar.gz
3017
Diffstat (limited to 'html/074list.mu.html')
-rw-r--r--html/074list.mu.html27
1 files changed, 14 insertions, 13 deletions
diff --git a/html/074list.mu.html b/html/074list.mu.html
index be4c153f..5154783c 100644
--- a/html/074list.mu.html
+++ b/html/074list.mu.html
@@ -63,21 +63,22 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color
 
 <span class="muScenario">scenario</span> list-handling [
   run [
-    <span class="Constant">1</span>:address:list:number<span class="Special"> &lt;- </span>push <span class="Constant">3</span>, <span class="Constant">0</span>
-    <span class="Constant">1</span>:address:list:number<span class="Special"> &lt;- </span>push <span class="Constant">4</span>, <span class="Constant">1</span>:address:list:number
-    <span class="Constant">1</span>:address:list:number<span class="Special"> &lt;- </span>push <span class="Constant">5</span>, <span class="Constant">1</span>:address:list:number
-    <span class="Constant">2</span>:number<span class="Special"> &lt;- </span>first <span class="Constant">1</span>:address:list:number
-    <span class="Constant">1</span>:address:list:number<span class="Special"> &lt;- </span>rest <span class="Constant">1</span>:address:list:number
-    <span class="Constant">3</span>:number<span class="Special"> &lt;- </span>first <span class="Constant">1</span>:address:list:number
-    <span class="Constant">1</span>:address:list:number<span class="Special"> &lt;- </span>rest <span class="Constant">1</span>:address:list:number
-    <span class="Constant">4</span>:number<span class="Special"> &lt;- </span>first <span class="Constant">1</span>:address:list:number
-    <span class="Constant">1</span>:address:list:number<span class="Special"> &lt;- </span>rest <span class="Constant">1</span>:address:list:number
+    <span class="Constant">local-scope</span>
+    x:address:list:number<span class="Special"> &lt;- </span>push <span class="Constant">3</span>, <span class="Constant">0</span>
+    x<span class="Special"> &lt;- </span>push <span class="Constant">4</span>, x
+    x<span class="Special"> &lt;- </span>push <span class="Constant">5</span>, x
+    <span class="Constant">10</span>:number/<span class="Special">raw &lt;- </span>first x
+    x<span class="Special"> &lt;- </span>rest x
+    <span class="Constant">11</span>:number/<span class="Special">raw &lt;- </span>first x
+    x<span class="Special"> &lt;- </span>rest x
+    <span class="Constant">12</span>:number/<span class="Special">raw &lt;- </span>first x
+    <span class="Constant">20</span>:address:list:number/<span class="Special">raw &lt;- </span>rest x
   ]
   memory-should-contain [
-    <span class="Constant">1</span><span class="Special"> &lt;- </span><span class="Constant">0</span>  <span class="Comment"># empty to empty, dust to dust..</span>
-    <span class="Constant">2</span><span class="Special"> &lt;- </span><span class="Constant">5</span>
-    <span class="Constant">3</span><span class="Special"> &lt;- </span><span class="Constant">4</span>
-    <span class="Constant">4</span><span class="Special"> &lt;- </span><span class="Constant">3</span>
+    <span class="Constant">10</span><span class="Special"> &lt;- </span><span class="Constant">5</span>
+    <span class="Constant">11</span><span class="Special"> &lt;- </span><span class="Constant">4</span>
+    <span class="Constant">12</span><span class="Special"> &lt;- </span><span class="Constant">3</span>
+    <span class="Constant">20</span><span class="Special"> &lt;- </span><span class="Constant">0</span>  <span class="Comment"># nothing left</span>
   ]
 ]